Skip to content
Snippets Groups Projects

Redis

Merged Jake requested to merge redis into main
7 files
+ 222
2
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 14
0
@@ -3,6 +3,8 @@
module Config where
import Happstack.Lite
import Database.Redis
--import Database.Redis.Connection
aocServerConfig :: ServerConfig
aocServerConfig = ServerConfig { port = 8000
@@ -18,3 +20,15 @@ templatesDir = "templates"
configFile :: FilePath
configFile = "config.json"
dbConnectInfo = defaultConnectInfo
{ connectHost = "localhost"
, connectPort = PortNumber 6379 -- Redis default port
, connectAuth = Nothing -- No password
, connectDatabase = 0 -- SELECT database 0
--, connectMaxConnections = 50 -- Up to 50 connections
--, connectMaxIdleTime = 30 -- Keep open for 30 seconds
--, connectTimeout = Nothing -- Don't add timeout logic
--, connectTLSParams = Nothing -- Do not use TLS
}
Loading