Documentation
¶
Index ¶
- func Cache[T any]() types.Cache[T]
- func Client() (*memcache.Client, error)
- func Close()
- func Decrement(key string, delta uint64) (uint64, error)
- func Delete(key string) error
- func Get(key string) ([]byte, error)
- func GetMulti(keys []string) (map[string]*memcache.Item, error)
- func Health() error
- func Increment(key string, delta uint64) (uint64, error)
- func Init() (err error)
- func New(cfg config.Memcached) (*memcache.Client, error)
- func Set(key string, value []byte, expiration int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close()
Close closes the Memcached client connection Note: gomemcache doesn't have a Close method, but we keep this for API consistency
func Init ¶
func Init() (err error)
Init initializes the global Memcached client. It reads Memcached configuration from config.App.Memcached. If Memcached is not enabled, it returns nil. The function is thread-safe and ensures the client is initialized only once.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.