rediscache

package
v0.0.0-...-a802798 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(a int, b int, c int) string

Types

type RedisCache

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

https://www.alexedwards.net/blog/working-with-redis

func (*RedisCache) Connect

func (redisCache *RedisCache) Connect(redisConnectionAddress string)

Connect Creates a connection to given address

func (*RedisCache) Disconnect

func (redisCache *RedisCache) Disconnect()

Disconnect closes that connection

func (*RedisCache) GetRootsIfExist

func (redisCache *RedisCache) GetRootsIfExist(key string) (float64, float64, bool)

func (*RedisCache) SaveResult

func (redisCache *RedisCache) SaveResult(key string, root1 float64, root2 float64) error

Jump to

Keyboard shortcuts

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