Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DEL_SCRIPT = redis.NewScript(0, `for i, k in ipairs(redis.call('KEYS', ARGV[1])) do redis.call('DEL', k) end`)
)
Functions ¶
Types ¶
type KeyspaceNotifications ¶
type KeyspaceNotifications struct {
// contains filtered or unexported fields
}
func NewKeyspaceNotifications ¶
func NewKeyspaceNotifications(s store.Store, opts ...KeyspaceNotificationsOption) (*KeyspaceNotifications, error)
func (*KeyspaceNotifications) KeyChanged ¶
func (k *KeyspaceNotifications) KeyChanged(pattern string, cb changedCallback)
func (*KeyspaceNotifications) KeyDeleted ¶
func (k *KeyspaceNotifications) KeyDeleted(pattern string, cb deletedCallback)
func (*KeyspaceNotifications) KeyExpired ¶
func (k *KeyspaceNotifications) KeyExpired(pattern string, cb expiredCallback)
func (*KeyspaceNotifications) Listen ¶
func (k *KeyspaceNotifications) Listen() error
type KeyspaceNotificationsOption ¶
type KeyspaceNotificationsOption func(*KeyspaceNotifications)
func NotifyWithLock ¶
func NotifyWithLock() KeyspaceNotificationsOption
Click to show internal directories.
Click to hide internal directories.