Documentation
¶
Index ¶
- func GetFromCache(ctx context.Context, cacheInstanceName string, key string, val any) error
- func GetHashmapFromCache(ctx context.Context, cacheInstanceName string, key string, val any) error
- func HGetFromCache(ctx context.Context, cacheInstanceName string, key string, field string, ...) error
- func HSetIntoCache(ctx context.Context, cacheInstanceName string, key string, ...) error
- func Release() error
- func SetHashmapIntoCache(ctx context.Context, cacheInstanceName string, key string, val any, ...) error
- func SetIntoCache(ctx context.Context, cacheInstanceName string, key string, val any, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFromCache ¶
GetFromCache - get simple type value from the cache by key
func GetHashmapFromCache ¶
GetHashmapFromCache - get map/struct/array value from the cache by key
func HGetFromCache ¶
func HSetIntoCache ¶
func HSetIntoCache(ctx context.Context, cacheInstanceName string, key string, expiration time.Duration, val ...any) error
HSetIntoCache - set struct value into the cache by key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.