Versions in this module Expand all Collapse all v0 v0.2.2 Nov 22, 2021 v0.2.1 Nov 9, 2021 v0.2.0 Nov 9, 2021 v0.1.9 Oct 21, 2021 v0.1.8 Oct 12, 2021 Changes in this version + type Cache interface + Cache func(key string, val []byte) error + Clear func() error + Compressed func(yes bool) + Init func() error + IsCached func(key string) ([]byte, bool) + type CacheModel struct + Key string + Value []byte + func (CacheModel) TableName() string + type MySQLCache struct + Database string + Host string + Password string + Port string + Username string + func (mc *MySQLCache) Cache(key string, val []byte) error + func (mc *MySQLCache) Clear() error + func (mc *MySQLCache) Compressed(yes bool) + func (mc *MySQLCache) Init() error + func (mc *MySQLCache) IsCached(key string) ([]byte, bool) + type PostgreSQLCache struct + Database string + Host string + Password string + Port string + SSLMode string + TimeZone string + Username string + func (pc *PostgreSQLCache) Cache(key string, val []byte) error + func (pc *PostgreSQLCache) Clear() error + func (pc *PostgreSQLCache) Compressed(yes bool) + func (pc *PostgreSQLCache) Init() error + func (pc *PostgreSQLCache) IsCached(key string) ([]byte, bool) + type RedisCache struct + Addr string + DB int + Password string + func (rc *RedisCache) Cache(key string, val []byte) error + func (rc *RedisCache) Clear() error + func (rc *RedisCache) Compressed(yes bool) + func (rc *RedisCache) Init() error + func (rc *RedisCache) IsCached(key string) ([]byte, bool) + type SQLiteCache struct + URI string + func (sc *SQLiteCache) Cache(key string, val []byte) error + func (sc *SQLiteCache) Clear() error + func (sc *SQLiteCache) Compressed(yes bool) + func (sc *SQLiteCache) Init() error + func (sc *SQLiteCache) IsCached(key string) ([]byte, bool)