cache

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCache added in v1.0.14

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

func New

func New(c *redis.Client, locker lock.Locker) (*RedisCache, error)

func (*RedisCache) FlushCache added in v1.0.14

func (rc *RedisCache) FlushCache(ctx context.Context, key string, expiration time.Duration, ttl time.Duration, f cache.LoadFunc, data interface{}) (err error)

func (*RedisCache) GetData added in v1.0.14

func (rc *RedisCache) GetData(ctx context.Context, key string, expiration time.Duration, ttl time.Duration, f cache.LoadFunc, data interface{}) (err error)

Jump to

Keyboard shortcuts

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