aadhaarcache

package
v0.0.0-...-d2a45df Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 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 MemCache

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

func NewMemCache

func NewMemCache() *MemCache

func (MemCache) GetData

func (c MemCache) GetData(hash string, v interface{}) (err error)

func (MemCache) GetSession

func (c MemCache) GetSession(hash string) (session string, err error)

func (MemCache) IsNotFoundError

func (c MemCache) IsNotFoundError(err error) bool

func (MemCache) SaveData

func (c MemCache) SaveData(hash string, data interface{}) (err error)

func (MemCache) SaveSession

func (c MemCache) SaveSession(session string) (hash string, err error)

type RedisCache

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

func NewRedisCache

func NewRedisCache(opt *redis.Options) RedisCache

func (RedisCache) GetData

func (c RedisCache) GetData(hash string, v interface{}) (err error)

func (RedisCache) GetSession

func (c RedisCache) GetSession(hash string) (session string, err error)

func (RedisCache) IsNotFoundError

func (c RedisCache) IsNotFoundError(err error) bool

func (RedisCache) SaveData

func (c RedisCache) SaveData(hash string, data interface{}) (err error)

func (RedisCache) SaveSession

func (c RedisCache) SaveSession(session string) (hash string, err error)

Jump to

Keyboard shortcuts

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