cache

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cache assemble all functions for redis

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedisDel

func RedisDel(redisURI string, keyName string)

RedisGet permit to get k/v in redis

func RedisDelWithPrefix

func RedisDelWithPrefix(redisURI string, keyPrefix string)

RedisDelWithPrefix permit to list keys keys has prefix like keyName* and then, delete keys

func RedisDeleteKeysHasPrefix

func RedisDeleteKeysHasPrefix(redisURI string, prefixes []string)

RedisDeleteKeysHasPrefix permit to list keys keys has prefix like keyName* and then, delete keys

func RedisFlushAll

func RedisFlushAll(redisURI string)

RedisFlushAll permit to flush all db in redis

func RedisFlushDB

func RedisFlushDB(redisURI string)

RedisFlushDB permit to flush actual used db in redis

func RedisGet

func RedisGet(redisURI string, keyName string) (z string, err error)

RedisGet permit to get k/v in redis

func RedisKeys

func RedisKeys(redisURI string, keyPrefix string) (z []string)

RedisGet permit to get k/v in redis

func RedisPing

func RedisPing(redisURI string) (b bool)

RedisPing permit to get redis status

func RedisSet

func RedisSet(redisURI string, keyName string, value string, expire time.Duration)

RedisSet permit to put k/v in redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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