{"id":21902152,"url":"https://github.com/lamaparbat/express_redis_caching_rate_limit","last_synced_at":"2026-05-04T15:32:25.003Z","repository":{"id":233423708,"uuid":"786977271","full_name":"lamaparbat/EXPRESS_REDIS_CACHING_RATE_LIMIT","owner":"lamaparbat","description":"EXPRESS REST API CACHING + RATE LIMITING + KV-STORE","archived":false,"fork":false,"pushed_at":"2024-04-16T11:03:03.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T06:25:24.499Z","etag":null,"topics":["express","ioredis","kv-cache","rate-limiting","redis","redis-stack","restapi"],"latest_commit_sha":null,"homepage":"https://express-redis-caching.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lamaparbat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-15T16:52:13.000Z","updated_at":"2024-04-16T11:15:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"225f0a8e-b1f4-4811-bc06-ba778557cbce","html_url":"https://github.com/lamaparbat/EXPRESS_REDIS_CACHING_RATE_LIMIT","commit_stats":null,"previous_names":["lamaparbat/express_redis_caching"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lamaparbat/EXPRESS_REDIS_CACHING_RATE_LIMIT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamaparbat%2FEXPRESS_REDIS_CACHING_RATE_LIMIT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamaparbat%2FEXPRESS_REDIS_CACHING_RATE_LIMIT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamaparbat%2FEXPRESS_REDIS_CACHING_RATE_LIMIT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamaparbat%2FEXPRESS_REDIS_CACHING_RATE_LIMIT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamaparbat","download_url":"https://codeload.github.com/lamaparbat/EXPRESS_REDIS_CACHING_RATE_LIMIT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamaparbat%2FEXPRESS_REDIS_CACHING_RATE_LIMIT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001506,"owners_count":26083118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","ioredis","kv-cache","rate-limiting","redis","redis-stack","restapi"],"created_at":"2024-11-28T15:16:41.573Z","updated_at":"2025-10-09T14:35:07.169Z","avatar_url":"https://github.com/lamaparbat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caching Express Server using Redis. (REDIS-STACK Docker Image)\n\n### **Points to know**\n\n- Redis is key-value pair in-memory(RAM) database\n- One string value limit is 512 MB.\n\n\n### **Installation**\n\n- Setup Redis server with Redis-Stack (GUI) using docker images\n    \n    ```bash\n    docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest\n    ```\n    \n    ```bash\n    --name = name of container i.e redis-stack which is anything given by user\n    -d   = it runs container in background (detached mode)\n    -p   = map port 6379 to 6379 where 6379 is redis server default port\n    -p   = map port 8001 to 8001 where 8001 is redis-stack (gui) default port\n    redis-stack/latest  = latest of version of redis-stack server\n    ```\n    \n    At first, the image will not be found in our system, then docker automatically fetch from the docker hub where the redis-stack image is hosted/located. and then will run the images.\n    \n    After succesfully image run we can see the gui of redis in port `localhost:8001` \n    \n- Navigate  to docker container where our redis server is located\n    \n    ```bash\n    docker exec -it containerId bash\n    \n    -it  = interactive mode where we can write, delete, edit, ..\n    bash = open bash terminal where we can put command\n    ```\n    \n- Test if `redis-cli` is exists in bash or not\n    \n    ```bash\n    redis-cli ping\n    \n    redis-cli = entry command \n    Result = PONG\n    ```\n    \n- Open `redis-cli`\n    \n    ```bash\n    redis-cli\n    ```\n    \n\n- Store data in `redis` in key-value pair\n    \n    ```bash\n    set \u003centity\u003e:\u003cid\u003e value\n    \n    i.e\n    \n    set user:name parbat\n    set user:age 12\n    \n    user:name, user:age = key\n    parbat, 12 = value\n    \n    **Set multiple key value**\n    \n    *mset user:name \"hacker\" message:1 \"Ola gamostas\"*\n    ```\n    \n- Get data from key\n    \n    ```bash\n    get \u003centity\u003e:\u003cid\u003e\n    i.e\n    get user:name\n    get user:age\n    \n    G**et multiple key value**\n    \n    *mget user:name message:1*\n    ```\n    \n\n- Store data only if key doesn’t exists using (`nx`) and called `Locks`\n    \n    ```bash\n    set \u003centity\u003e:\u003cid\u003e value nx\n    ```\n    \n- Counter increment/decrement using `incre` `incrby` `decr` `decrby`\n    \n    ```bash\n    set count 0\n    \n    incr count                        result= 1\n    \n    incrby count 10                   result= 10\n    \n    decr count                        result= 9\n    \n    decrby count 5                    result= 4\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamaparbat%2Fexpress_redis_caching_rate_limit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamaparbat%2Fexpress_redis_caching_rate_limit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamaparbat%2Fexpress_redis_caching_rate_limit/lists"}