nocache

package
Version: v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package nocache is a mock of caching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is nocache client.

func New

func New() (*Client, error)

New to create fake cache.

func (*Client) Close

func (c *Client) Close() error

Close will just return nil.

func (*Client) Delete

func (c *Client) Delete(key string) error

Delete will just return nil.

func (*Client) Get

func (c *Client) Get(key string, data interface{}) error

Get will just return error to simulate as if data is not in cache.

func (*Client) Set

func (c *Client) Set(key string, data interface{}) error

Set will just return nil.

Source Files

Jump to

Keyboard shortcuts

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