cache

package
v0.9.15 Latest Latest
Warning

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

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

Documentation

Overview

Package cache includes error and interface for cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Get a value associated with given key in cache.
	Get(key string) ([]byte, error)
	// SetWithExpiry add a key-value pair with expiry in cache. Expiry in duration second not timestamp.
	SetWithExpiry(key string, value []byte, seconds int64) error
	// Close returns the client after use.
	Close() error
}

Client of cache.

Directories

Path Synopsis
Package rediz includes helpers to access cache.
Package rediz includes helpers to access cache.

Jump to

Keyboard shortcuts

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