driver

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicCacher

type BasicCacher interface {
	Prefix() string

	Has(key string) bool
	Get(key string, defaultValue ...interface{}) interface{}
	Pull(key string, defaultValue ...interface{}) interface{}
	Put(key string, value interface{}, future zone.Time) bool
	Add(key string, value interface{}, future zone.Time) bool
	Increment(key string, value int64) (incremented int64, success bool)
	Decrement(key string, value int64) (decremented int64, success bool)
	Forever(key string, value interface{}) bool
	Forget(key string) bool
	Close() error
}

type ProtoCacheGetter

type ProtoCacheGetter interface {
	Pget(key string, valuePtr proto.Message, defaultValuePtr ...proto.Message) error
}

type ProtoCacher

type ProtoCacher interface {
	Ppull(key string, valuePtr proto.Message, defaultValuePtr ...proto.Message) error
	Pput(key string, valuePtr proto.Message, future zone.Time) bool
	Padd(key string, valuePtr proto.Message, future zone.Time) bool
	Pforever(key string, valuePtr proto.Message) bool

	ProtoCacheGetter
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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