Versions in this module Expand all Collapse all v0 v0.0.4 Mar 18, 2026 Changes in this version + type CacheMod func(*PgCache) + func WithTTL(ttl int) CacheMod + type PgCache struct + CacheTable string + CleanerInterval int + DbPool *sql.DB + TTL int + func NewPgCache(dbPool *sql.DB, cacheTable string, modifiers ...CacheMod) *PgCache + func (s *PgCache) CleanUp(ctx context.Context, interval int) + func (s *PgCache) ClearCacheStore() error + func (s *PgCache) CreateCacheTable() error + func (s *PgCache) Delete(id string) error + func (s *PgCache) DeleteExpired() error + func (s *PgCache) DropCacheStore() error + func (s *PgCache) Get(id string) ([]byte, bool) + func (s *PgCache) Put(id string, content []byte) error + func (s *PgCache) PutWitTTL(id string, content []byte, ttl int) error + func (s *PgCache) StartCleaner(interval int) + func (s *PgCache) StopCleaner()