cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 7 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 {
	Client *redis.Client
}

func NewCache

func NewCache(url string) *Cache

func (*Cache) CreateSession

func (c *Cache) CreateSession(session_id string, sessionInfo *types.SessionInfo) (bool, error)

func (*Cache) GetSessionInfo

func (c *Cache) GetSessionInfo(session_id string) (*types.SessionInfo, error)

func (*Cache) RemoveSession

func (c *Cache) RemoveSession(session_id string)

Jump to

Keyboard shortcuts

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