{"id":20433120,"url":"https://github.com/sivaosorg/redis4j","last_synced_at":"2026-05-10T05:09:59.162Z","repository":{"id":248255900,"uuid":"828200114","full_name":"sivaosorg/redis4j","owner":"sivaosorg","description":"redis4j is a comprehensive library designed to support Spring Boot projects by simplifying Redis integration. This library manages Redis connections and provides essential Redis services, including setting, getting, and removing keys. Enhance your Spring Boot applications with ease using redis4j.","archived":false,"fork":false,"pushed_at":"2024-12-06T08:48:53.000Z","size":321,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T19:02:06.328Z","etag":null,"topics":["redis","redis-client","redis-cluster","redis-pubsub","redis-sentinel","redis-sentinel-cluster","spring-boot","spring-redis","spring-redis-messaging","spring-redis-plugin","spring-redisgraph"],"latest_commit_sha":null,"homepage":"https://github.com/sivaosorg/redis4j","language":"Java","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/sivaosorg.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-07-13T12:15:56.000Z","updated_at":"2024-12-06T08:48:57.000Z","dependencies_parsed_at":"2024-08-11T15:27:37.335Z","dependency_job_id":"bb8bb568-37fd-47c1-b13b-cf835965e266","html_url":"https://github.com/sivaosorg/redis4j","commit_stats":null,"previous_names":["sivaosorg/redis4j"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sivaosorg/redis4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivaosorg%2Fredis4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivaosorg%2Fredis4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivaosorg%2Fredis4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivaosorg%2Fredis4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivaosorg","download_url":"https://codeload.github.com/sivaosorg/redis4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivaosorg%2Fredis4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271262127,"owners_count":24728976,"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-08-20T02:00:09.606Z","response_time":69,"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":["redis","redis-client","redis-cluster","redis-pubsub","redis-sentinel","redis-sentinel-cluster","spring-boot","spring-redis","spring-redis-messaging","spring-redis-plugin","spring-redisgraph"],"created_at":"2024-11-15T08:17:48.508Z","updated_at":"2026-05-10T05:09:59.123Z","avatar_url":"https://github.com/sivaosorg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis4j\n\n## Introduction\n\n**redis4j** is a comprehensive library designed to support Spring Boot projects by simplifying Redis integration. This\nlibrary manages Redis connections and provides essential Redis services, including setting, getting, and removing keys.\nEnhance your Spring Boot applications with ease using **redis4j**.\n\n## Features\n\n- Comprehensive set of utility functions.\n- Written in Java 1.8.\n- Well-documented code for easy understanding.\n- Regular updates and maintenance.\n\n## Installation\n\n```bash\ngit clone --depth 1 https://github.com/sivaosorg/redis4j.git\n```\n\n## Generation Plugin Java\n\n```bash\ncurl https://gradle-initializr.cleverapps.io/starter.zip -d type=groovy-gradle-plugin  -d testFramework=testng -d projectName=redis4j -o redis4j.zip\n```\n\n## Modules\n\nExplain how users can interact with the various modules.\n\n### Tidying up\n\nTo tidy up the project's Java modules, use the following command:\n\n```bash\n./gradlew clean\n```\n\nor\n\n```bash\nmake clean\n```\n\n### Building SDK\n\n```bash\n./gradlew jar\n```\n\nor\n\n```bash\nmake jar\n```\n\n### Upgrading version\n\n- file `gradle.yml`\n\n```yaml\nng:\n  name: redis4j\n  version: v1.0.0\n  enabled_link: false # enable compression and attachment of the external libraries\n  jars:\n    - enabled: false # enable compression and attachment of the external libraries\n      source: \"./../libs/unify4j-v1.0.0.jar\" # lib Jar\n    - enabled: false\n      source: \"\"\n```\n\n## Add dependencies\n\n```groovy\n// The \"spring-data-redis\" library, version 2.7.8, is a Spring Data module that provides easy configuration and access to Redis from Spring applications,\n// offering comprehensive support for Redis operations, including connection management, RedisTemplate, and repository support for Spring Data.\nimplementation group: 'org.springframework.data', name: 'spring-data-redis', version: '2.7.8'\n// The \"spring-integration-redis\" library, version 5.5.20, is a Spring Integration module that provides support for Redis-based messaging,\n// enabling integration with Redis to send and receive messages, as well as leveraging Redis Pub/Sub capabilities within Spring applications.\n// Using runtimeOnly to ensure this dependency is only included at runtime.\nruntimeOnly group: 'org.springframework.integration', name: 'spring-integration-redis', version: '5.5.20'\n// The \"lettuce-core\" library, version 6.2.3.RELEASE, is a powerful and thread-safe Redis client for Java,\n// providing asynchronous, synchronous, and reactive API support to efficiently interact with Redis servers.\nimplementation group: 'io.lettuce', name: 'lettuce-core', version: '6.2.3.RELEASE'\n// The \"jedis\" library, version 5.1.3, is a simple and feature-rich Java client for Redis,\n// providing synchronous and asynchronous communication with Redis servers to perform various operations and transactions.\nimplementation group: 'redis.clients', name: 'jedis', version: '5.1.3'\n```\n\n## Application configuration\n\n\u003e Read more [here](plugin/src/main/resources/application.example.yml)\n\n```yaml\n# ################################\n# Spring Redis4J Config\n# 2024-06-16 10:48:54\n# ################################\nspring:\n  # noinspection SpellCheckingInspection\n  redis4j: # Redis4J specific configuration\n    enabled: false # Toggle to enable or disable Redis4J\n    debugging: false # Toggle debugging for Redis4J\n    test_on_borrow: true # Test the connection on borrowing from the pool\n    test_on_return: true # Test the connection on returning to the pool\n    test_while_idle: true # Test the connection while idle in the pool\n    block_when_exhausted: true # Block when the connection pool is exhausted\n    shared_native_connection: true # Enable sharing of native connections across multiple clients\n    num_tests_per_eviction_run: 3 # Number of tests to run on eviction\n    duration_between_eviction_runs: 30s # Time between eviction runs\n    # The maximum amount of time a Redis command (or operation) can take before it is considered to have timed out.\n    # This timeout ensures that if a Redis command execution exceeds this duration,\n    # the client library will abort the operation and throw a timeout exception.\n    execution_command_timeout: 100ms\n  redis: # Configuration for the Redis connection\n    database: 0 # The database index to use (default is 0)\n    host: 127.0.0.1 # The host where the Redis server is running\n    port: 6379 # The port on which the Redis server is listening\n    password: \"****\" # Optional password to authenticate with Redis (if required)\n    timeout: 2000ms # The timeout value for connecting to Redis\n    jedis: # Configuration for connection pooling with Jedis\n      pool:\n        max-active: 8 # Maximum number of connections in the Jedis pool\n        max-idle: 8 # Maximum number of idle connections in the Jedis pool\n        min-idle: 0 # Minimum number of idle connections in the Jedis pool\n        max-wait: -1ms # Maximum wait time for a connection from the Jedis pool\n```\n\n## Integration\n\n1. Add dependency into file `build.gradle`\n\n```gradle\nimplementation files('libs/redis4j-v1.0.0.jar') // filename based on ng.name and ng.version\n```\n\n2. Edit file `main Spring Boot application` (optional)\n\n```java\n\n@SpringBootApplication\n@ComponentScan(basePackages = {\"org.redis4j\"}) // root name of package wizard4j\npublic class ApiApplication {\n    public static void main(String[] args) {\n        SpringApplication.run(ApiApplication.class, args);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivaosorg%2Fredis4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivaosorg%2Fredis4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivaosorg%2Fredis4j/lists"}