cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

README

cache

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// Get get cached value by key
	Get(key string) (value []byte, ok bool)
	// GetRange
	GetRange(key string, low, high int64) (value []byte, ok bool)
	// Put set cached value with key
	Set(key string, value []byte)
	// Put set cached value with key and expire time
	SetTimeout(key string, value []byte, timeout time.Duration) error
	// Delete delete cached value by key
	Delete(key string)
	// ClearAll clear all cache
	ClearAll() (err error)
	Close() error
}

Cache interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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