Documentation
¶
Index ¶
- type PgCache
- func (r *PgCache) CleanUp(ctx context.Context)
- func (r *PgCache) ClearCacheStore()
- func (r *PgCache) Delete(id string)
- func (r *PgCache) DeleteExpired()
- func (r *PgCache) DropCacheStore()
- func (r *PgCache) Get(id string) ([]byte, bool)
- func (r *PgCache) Init()
- func (r *PgCache) Put(id string, content []byte)
- func (r *PgCache) PutWitTTL(id string, content []byte, ttl int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgCache ¶
type PgCache struct {
CacheName string `required:"true"`
DbPool *sql.DB `required:"true"`
TTL int
// contains filtered or unexported fields
}
func (*PgCache) ClearCacheStore ¶
func (r *PgCache) ClearCacheStore()
func (*PgCache) DeleteExpired ¶
func (r *PgCache) DeleteExpired()
func (*PgCache) DropCacheStore ¶
func (r *PgCache) DropCacheStore()
Click to show internal directories.
Click to hide internal directories.