database

package
v0.0.0-...-44cae3a Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabaseService

func NewDatabaseService() *pgxpool.Pool

Types

type CacheService

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

func NewCacheService

func NewCacheService() *CacheService

func (*CacheService) Cleanup

func (c *CacheService) Cleanup()

func (*CacheService) Delete

func (c *CacheService) Delete(key string) bool

func (*CacheService) GetBool

func (c *CacheService) GetBool(key string) bool

func (*CacheService) GetString

func (c *CacheService) GetString(key string) string

func (*CacheService) Ping

func (c *CacheService) Ping() error

func (*CacheService) ReleaseLock

func (c *CacheService) ReleaseLock(key string, value string) bool

func (*CacheService) SetBool

func (c *CacheService) SetBool(key string, value bool, expiration time.Duration) bool

func (*CacheService) SetString

func (c *CacheService) SetString(key string, value string, expiration time.Duration) bool

func (*CacheService) TakeLock

func (c *CacheService) TakeLock(key string, value string, expiration time.Duration) bool

Jump to

Keyboard shortcuts

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