redis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver added in v0.3.0

type Driver struct {
	Client *redis.Client
}

func Open

func Open(opt *redis.Options) *Driver

func (*Driver) SlidingWindowLog added in v0.3.0

func (r *Driver) SlidingWindowLog(ctx context.Context, key string, limit int,
	window time.Duration) (int, time.Duration, error)

Jump to

Keyboard shortcuts

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