Skip to content

seaguest/ratelimit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratelimit

A distributed ratelimiter based on lua + redis

Usage

package main

import (
	"github.com/seaguest/ratelimit"
)

func main() {
	ratelimit.Init("127.0.0.1:6379", "")

	ratelimit.Take("1", 60, 100000, 1)
}

About

A distributed ratelimiter based on lua + redis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages