{"id":18869557,"url":"https://github.com/vedantwork/redis-cache-management","last_synced_at":"2026-04-10T23:02:48.294Z","repository":{"id":254549374,"uuid":"846878634","full_name":"vedantwork/Redis-Cache-Management","owner":"vedantwork","description":"Redis Cache Management is a powerful and efficient caching solution designed to optimize data retrieval and application performance by leveraging the Redis in-memory data structure store. This component provides a streamlined approach to managing cached data, reducing latency, and minimizing load on backend databases or services.","archived":false,"fork":false,"pushed_at":"2024-12-05T12:07:13.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T23:34:02.921Z","etag":null,"topics":["django","python","redis","redis-cache"],"latest_commit_sha":null,"homepage":"","language":"Python","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/vedantwork.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-08-24T07:50:41.000Z","updated_at":"2024-12-05T12:07:17.000Z","dependencies_parsed_at":"2024-08-24T09:02:44.706Z","dependency_job_id":null,"html_url":"https://github.com/vedantwork/Redis-Cache-Management","commit_stats":null,"previous_names":["vedantwork/redis-cache-management"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedantwork%2FRedis-Cache-Management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedantwork%2FRedis-Cache-Management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedantwork%2FRedis-Cache-Management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedantwork%2FRedis-Cache-Management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vedantwork","download_url":"https://codeload.github.com/vedantwork/Redis-Cache-Management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239816513,"owners_count":19701753,"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","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":["django","python","redis","redis-cache"],"created_at":"2024-11-08T05:17:00.557Z","updated_at":"2026-02-14T07:30:17.669Z","avatar_url":"https://github.com/vedantwork.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003cb\u003eREDIS CACHE MANAGEMENT\u003c/b\u003e\u003c/h1\u003e\n  \u003ch4\u003eOptimized caching solution for Django applications using Redis\u003c/h4\u003e\n\u003c/div\u003e\n\n## 📗 Table of Contents\n\n- 📖 About the Project\n- 👀 Overview\n- 🛠 Built With\n  - 🔥 Tech Stack\n- 🔑 Key Features\n- 💻 Getting Started\n  - 📜 Prerequisites\n  - ⚙️ Setup\n  - ▶️ Run Application\n  - 🕹️ Usage\n- 👥 Author\n\n## 📖 About the Project\n\nRedis Cache Management is a backend microservice integrated into a Django application, designed to optimize data retrieval and application performance by leveraging Redis as an in-memory data store. This service streamlines cache management, reduces latency, and minimizes load on backend databases.\n\n## 👀 Overview\n\n- The service provides methods to store (`setredisdata`), retrieve (`getredisdata`), and delete (`deleteredisdata`) cached data in Redis.\n- It handles caching efficiently, storing responses for up to 45 days to reduce the need for repeated data fetching from the backend.\n\n## 🛠 Built With\n\n- Python\n- Django\n- Redis\n- JSON\n\n### 🔥 Tech Stack\n\n- Django\n- Redis\n\n### 🔑 Key Features\n\n- **Efficient Caching**: Caches data for up to 45 days to reduce backend load.\n- **Data Retrieval**: Retrieves data from the cache, minimizing response time.\n- **Cache Management**: Provides methods to set, get, and delete cache entries.\n\n## 💻 Getting Started\n\n### 📜 Prerequisites\n\nTo use this service, you will need:\n\n- Python 3.x\n- Django\n- Redis server installed\n- Required Python libraries: `django-redis`, `json`.\n\n### ⚙️ Setup\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/your-repo/redis-cache-management.git\n    ```\n\n2. **Navigate to the project directory**:\n    ```bash\n    cd redis-cache-management\n    ```\n\n3. **Install the required dependencies**:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Configure Redis in Django**:\n\n    In your Django project's `settings.py`, add the following configuration:\n\n    ```python\n    CACHES = {\n        \"default\": {\n            \"BACKEND\": \"django_redis.cache.RedisCache\",\n            \"LOCATION\": \"redis://127.0.0.1:6379/1\",\n            \"OPTIONS\": {\n                \"CLIENT_CLASS\": \"django_redis.client.DefaultClient\",\n            }\n        }\n    }\n    ```\n\n5. **Start the Redis server**:\n    ```bash\n    sudo service redis-server start\n    ```\n\n### ▶️ Run Application\n\n1. **Run the Django development server**:\n    ```bash\n    python manage.py runserver\n    ```\n\n### 🕹️ Usage\n\n1. **Set Data**: Use the `setredisdata` method to store data in Redis.\n2. **Get Data**: Use the `getredisdata` method to retrieve cached data.\n3. **Delete Data**: Use the `deleteredisdata` method to delete cache entries as needed.\n\n- [👥 Author](#author)\n  - Vedant Vartak\n    - Email ✉️: vedantvartakworkk@gmail.com\n    - Country 🌍: India 🇮🇳\n\n**Example Usage**:\n\nTo set data in the cache, you can send a POST request to the `setredisdata` endpoint with the following payload:\n\n```json\n{\n    \"key\": \"unique_key\",\n    \"value\": {\n        \"data\": \"your_data\"\n    }\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedantwork%2Fredis-cache-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvedantwork%2Fredis-cache-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedantwork%2Fredis-cache-management/lists"}