memcached

package
v0.0.0-...-ee3c536 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memcached

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

Memcached struct for our concrete implemenation of memcached

func New

func New(host, port, server string) *Memcached

New constructor for our concrete implementation of memcacher

func (*Memcached) Delete

func (m *Memcached) Delete(suffix string) (bool, error)

Delete returns a boolean value if there is a successful deletion using the specified `key`, returns error otherwise.

func (*Memcached) Get

func (m *Memcached) Get(suffix string) (string, error)

Get returns the `data` saved in cache using the specified `key`.

func (*Memcached) Set

func (m *Memcached) Set(suffix string, val string) (bool, error)

Set returns a boolean value after setting a value using the specified `key`, returns error otherwise.

Jump to

Keyboard shortcuts

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