persistence

package
v0.0.0-...-0519aef Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheRepository

func NewCacheRepository(redis *redis.Client) business.CacheRepository

Types

type CacheRepositoryImpl

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

func (CacheRepositoryImpl) Get

func (c CacheRepositoryImpl) Get(key string) (string, error)

func (CacheRepositoryImpl) Set

func (c CacheRepositoryImpl) Set(key string, data string, expiration time.Duration) (string, error)

Jump to

Keyboard shortcuts

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