repository

package
v0.0.0-...-9d0cb51 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRepository

type DefaultRepository struct {
	GodisServer *godis.GodisServer
}

func (*DefaultRepository) Flush

func (repo *DefaultRepository) Flush()

func (*DefaultRepository) Get

func (repo *DefaultRepository) Get(key string) (value string, exists bool)

func (*DefaultRepository) Set

func (repo *DefaultRepository) Set(key, value string)

type Repository

type Repository interface {
	Get(key string) (value string, exists bool)
	Set(key, value string)
	Flush()
}

Jump to

Keyboard shortcuts

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