src

package
v0.0.0-...-6685b49 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *Cache

func (*Cache) Close

func (c *Cache) Close()

func (*Cache) Delete

func (c *Cache) Delete(key string)

func (*Cache) FlushAll

func (c *Cache) FlushAll()

func (*Cache) Get

func (c *Cache) Get(key string) (interface{}, bool)

func (*Cache) Keys

func (c *Cache) Keys() []string

func (*Cache) Set

func (c *Cache) Set(key string, value interface{}, ttl time.Duration)

func (*Cache) TTL

func (c *Cache) TTL(key string) (int64, bool)

type Server

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

func NewServer

func NewServer(c *Cache) *Server

func (*Server) Start

func (server *Server) Start(port string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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