go-redis / redis_rate

Rate limiting for go-redis
https://redis.uptrace.dev/guide/go-redis-rate-limiting.html
BSD 2-Clause "Simplified" License
844 stars 101 forks source link

dose lua script length limit? #87

Open Kean9527 opened 1 year ago

Kean9527 commented 1 year ago

I got error following: ERR Protocol error: expected '$', got 'n' when I used Allow function res, err := limiter.Allow(client.Ctx, key, limit), It will be OK while I remove all of comments in the lua script, so is there limitation of script length ?