redis

package
v0.0.0-...-31b9434 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleClient

func ExampleClient()

Types

type Database

type Database struct {
	Addr     string
	Username string
	Password string
	Db       int
}

type DatabaseId

type DatabaseId = int

type GoRedisConnection

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

type GoRedisRepository

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

func (*GoRedisRepository) ConnectTo

func (repository *GoRedisRepository) ConnectTo(connectionId connections.ConnectionId) error

func (*GoRedisRepository) Save

func (repository *GoRedisRepository) Save(connectionId connections.ConnectionId, object *Object) (*ObjectId, error)

type Object

type Object struct {
	Id  ObjectId
	Ttl Ttl
	// contains filtered or unexported fields
}

func (*Object) ValueFor

func (object *Object) ValueFor(key string) (string, error)

type ObjectId

type ObjectId = string

type ObjetsId

type ObjetsId string

type Page

type Page struct {
	Object   *[]Object
	Page     int
	PageSize int
}

type Repository

type Repository interface {
	ConnectTo(connectionId connections.ConnectionId) error

	Save(connectionId connections.ConnectionId, object *Object) (*ObjectId, error)
}

type Ttl

type Ttl = time.Duration

Jump to

Keyboard shortcuts

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