cache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuntDB

type BuntDB struct {
	Path string
	// contains filtered or unexported fields
}

BuntDB kv cache registry

type Cache

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

Cache struct for type Driver

func (*Cache) Del

func (c *Cache) Del(key string) (int64, error)

Del remove key from cache

func (*Cache) Get

func (c *Cache) Get(key string) (string, error)

Get search for a key pattern

func (*Cache) Init

func (c *Cache) Init(provider string)

Init provides internal cache

func (*Cache) Set

func (c *Cache) Set(key string, value interface{}) (string, error)

Set insert new key in cache

type Driver

type Driver interface {
	// contains filtered or unexported methods
}

Driver interface to implement

type Redis

type Redis struct {
	Address string
	DB      int
	// contains filtered or unexported fields
}

Redis kv cache registry

Jump to

Keyboard shortcuts

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