GithubHelp home page GithubHelp logo

chqiuu / spring-redis-current-limit Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 69 KB

此项目是基于Spring Redis Lua为一个无侵入的应用级网关限流框架,如果您正在寻找一个网关限流的框架,使用spring-redis-current-limit是最明智的选择

License: Apache License 2.0

Java 95.93% Lua 4.07%
redis spring-redis lua current-limiting rate-limiting

spring-redis-current-limit's People

Contributors

chqiuu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

reagan1947

spring-redis-current-limit's Issues

Comment Error 部分注释的问题

Explanatory Note Warning 部分注释的问题

1. Error Branch 问题分支

main 分支

2. File Location 所处文件

Location: redis-counter-limiter.lua

3. Error 问题

-- 获取当前流量大小
local expire = tonumber(KEYS[3]);

此处注释为当前流量大小,是否应该是 过期时间 ?见后面 ttl 使用:

if ttl < 0 then
    -- 设置 限流-key 的过期时间
    redis.call('EXPIRE',key,expire);
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.