Rewrote cache implemenation.
This commit is contained in:
parent
ab55705b9f
commit
3f46617f80
7 changed files with 285 additions and 148 deletions
|
|
@ -89,12 +89,8 @@ type (
|
|||
|
||||
// CacheConfig stores the cache configuration
|
||||
CacheConfig struct {
|
||||
Hostname string
|
||||
Port uint16
|
||||
Password string
|
||||
Database int
|
||||
TestDatabase int
|
||||
Expiration struct {
|
||||
Capacity int
|
||||
Expiration struct {
|
||||
StaticFile time.Duration
|
||||
Page time.Duration
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,11 +21,7 @@ app:
|
|||
emailVerificationTokenExpiration: "12h"
|
||||
|
||||
cache:
|
||||
hostname: "localhost"
|
||||
port: 6379
|
||||
password: ""
|
||||
database: 0
|
||||
testDatabase: 1
|
||||
capacity: 100000
|
||||
expiration:
|
||||
staticFile: "4380h"
|
||||
page: "24h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue