postgrescache

package
v0.180.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache postgres

func New

func New(db *sql.DB, cfg CacheConfig) *Cache

New creates new postgres.Cache

func (*Cache) Accounts

func (c *Cache) Accounts() cache.AccountsService

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Config

func (c *Cache) Config() cache.ConfigService

type CacheConfig

type CacheConfig struct {
	TTL  int
	Size int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL