项目作者: aah-cb

项目描述 :
Redis Session Store for aah framework
高级语言: Go
项目地址: git://github.com/aah-cb/redis-session-store.git
创建时间: 2017-05-25T19:58:28Z
项目社区:https://github.com/aah-cb/redis-session-store

开源协议:MIT License

下载


redis-session-store

Redis Session Store for aah framework

init.go

_ “github.com/aah-cb/redis-session-store”

security.conf
```roboconf

Session store is to choose where session value should be persisted.

  1. store {
  2. # Currently aah framework supports `cookie` and `file` as store type.
  3. # Also framework provide extensible `session.Storer` interface to
  4. # add custom session store.
  5. # Default value is `cookie`.
  6. type = "redis"
  7. # Filepath is used for file store to store session file in the file system.
  8. # This is only applicable for `type = "file"`, make sure application has
  9. # Read/Write access to the directory. Provide absolute path.
  10. # filepath = "sessions"
  11. redis {
  12. # the redis network option, "tcp"
  13. network = "tcp"
  14. # the redis address option, "127.0.0.1:6379"
  15. addr = "127.0.0.1:6379"
  16. # Password string .If no password then no 'AUTH'. Default ""
  17. password = ""
  18. # If Database is empty "" then no 'SELECT'. Default ""
  19. database = ""
  20. # Prefix "myprefix-for-this-website". Default ""
  21. prefix = "session_"
  22. # MaxIdle 0 no limit
  23. max_idle = 10
  24. # MaxActive 0 no limit
  25. max_active = 30
  26. }
  27. }

```roboconf