Documentation
¶
Index ¶
- func NewDatabaseService() *pgxpool.Pool
- type CacheService
- func (c *CacheService) Cleanup()
- func (c *CacheService) Delete(key string) bool
- func (c *CacheService) GetBool(key string) bool
- func (c *CacheService) GetString(key string) string
- func (c *CacheService) Ping() error
- func (c *CacheService) ReleaseLock(key string, value string) bool
- func (c *CacheService) SetBool(key string, value bool, expiration time.Duration) bool
- func (c *CacheService) SetString(key string, value string, expiration time.Duration) bool
- func (c *CacheService) TakeLock(key string, value string, expiration time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseService ¶
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
Click to show internal directories.
Click to hide internal directories.