caches

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Connection string
	Host       string
	Port       string
	Username   string
	Password   string
}

func (*Cache) Memcached added in v1.1.0

func (cache *Cache) Memcached() (*CacheConnection, error)

func (*Cache) Redis

func (cache *Cache) Redis() (*CacheConnection, error)

type CacheConnection added in v1.1.0

type CacheConnection struct {
	Redis     *redis.Client
	Memcached *memcache.Client
}

func New

func New(cache *Cache) (*CacheConnection, error)

Jump to

Keyboard shortcuts

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