cache

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 6 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
}

Cache contains functions for prompt cache.

func New

func New(cacher cache.Cacher) *Cache

New to create new prompt cache.

func (*Cache) DeleteSearch

func (c *Cache) DeleteSearch(ctx context.Context, userID string) error

DeleteSearch to delete search prompt.

func (*Cache) GetSearch

func (c *Cache) GetSearch(ctx context.Context, userID string) (data *entity.Search)

GetSearch to get search prompt.

func (*Cache) SetSearch

func (c *Cache) SetSearch(ctx context.Context, userID string, data entity.Search) error

SetSearch to set search prompt.

Jump to

Keyboard shortcuts

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