Documentation
¶
Index ¶
- Variables
- func CreateDataCache[T any](key string, cronSpec string, retrieve func() (T, error)) *dataCache[T]
- func GetKV[T any](store *KeyValueStore, key string) (T, error)
- func InitDataCache(database *bun.DB, table string, dataCaches []DataCache) error
- func PutKV[T any](store *KeyValueStore, key string, value T) error
- type DataCache
- type KeyValueStore
- type TableFile
- type TableFiles
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKVNotFound = errors.New("not found")
)
Functions ¶
func CreateDataCache ¶
func InitDataCache ¶
Types ¶
type KeyValueStore ¶
type KeyValueStore struct {
// contains filtered or unexported fields
}
func InitKeyValue ¶
func InitKeyValue(database *bun.DB, table string) (*KeyValueStore, error)
type TableFile ¶
type TableFiles ¶
type TableFiles struct {
// contains filtered or unexported fields
}
func InitTableFiles ¶
func InitTableFiles(database *bun.DB, table string) (*TableFiles, error)
Click to show internal directories.
Click to hide internal directories.