Rewrote cache implemenation.

This commit is contained in:
mikestefanello 2024-06-18 20:25:01 -04:00
parent ab55705b9f
commit 3f46617f80
7 changed files with 285 additions and 148 deletions

View file

@ -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
}

View file

@ -21,11 +21,7 @@ app:
emailVerificationTokenExpiration: "12h"
cache:
hostname: "localhost"
port: 6379
password: ""
database: 0
testDatabase: 1
capacity: 100000
expiration:
staticFile: "4380h"
page: "24h"