utils

package
v0.0.0-...-c2689a6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE_NAME_PATTERN = "^(.+)(\\.[^\\.\\/]+)$"
)

Variables

This section is empty.

Functions

func FileNameAndExt

func FileNameAndExt(filename string) (name string, ext string)

func Md5

func Md5(content []byte) string

Types

type RedisClient

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

func GetRedisClient

func GetRedisClient() *RedisClient

func (*RedisClient) GetValue

func (this *RedisClient) GetValue(key string) (value []byte, err error)

func (*RedisClient) SaveKey

func (this *RedisClient) SaveKey(key string, value []byte, duration time.Duration) (err error)

Jump to

Keyboard shortcuts

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