newsCache

package
v0.0.0-...-3b54a73 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKey

func DeleteKey(keys ...string)

DeleteKey remove keys from redis

func NewsIndexCache

func NewsIndexCache()

NewsIndexCache make an index news for fast access

func PushIDredis

func PushIDredis(key string, IDS ...database.NewsIds)

PushIDredis util to push bulk id to redis w/key TODO refactor this!

func PushIDredisObjectID

func PushIDredisObjectID(key string, IDs ...string)

PushIDredisObjectID util to push bulk id to redis w/key TODO refactor this!

func RedisKeyGen

func RedisKeyGen(keys ...string) string

RedisKeyGen generate redis keys based on slice

func ReverseSlice

func ReverseSlice(s ...string) []string

ReverseSlice util to reverse slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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