# README
redigo
An officially supported adapter compatible with go-redis
Usage
Usage
package main
import (
"github.com/aidenwallis/go-ratelimiting/redis"
adapter "github.com/aidenwallis/go-ratelimiting/redis/adapters/go-redis"
goredis "github.com/redis/go-redis/v9"
)
func main() {
client := goredis.NewClient(&redis.Options{Addr: "127.0.0.1:6379"})
ratelimiter := redis.NewLeakyBucket(adapter.NewAdapter(client))
}
# Functions
NewAdapter creates a new adapter using the [go-redis] client.