Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistentCache ¶
type PersistentCache struct {
// contains filtered or unexported fields
}
func NewPersistentCache ¶
func NewPersistentCache(pc PersistentCacheArgs) *PersistentCache
func (*PersistentCache) Delete ¶
func (pc *PersistentCache) Delete(key string) error
Delete deletes one persistent cache entry.
func (*PersistentCache) Expire ¶
func (pc *PersistentCache) Expire(keyPrefix string, olderThan time.Time) error
Expire expires old entries with the given key prefix.
type PersistentCacheArgs ¶
type PersistentCacheArgs struct { DB *pgxpool.Pool Utils *utils.Utils Cfg *config.StorePostgresConfig UGen *types.UidGenerator }
Click to show internal directories.
Click to hide internal directories.