Description
I am proposing a new feature for the GitHub Redis-om library, aiming to enhance its capabilities with a repository pattern for fluent chaining methods akin to Laravel's Eloquent. This feature aims to streamline data retrieval from Redis by introducing a repository method for finding data with a fluent chaining syntax, facilitating cleaner and more expressive code. Additionally, I suggest the inclusion of a new method, repository.exist(key)
, designed to efficiently check the existence of a key within Redis. This method would provide a simple yet powerful means to ascertain whether a specific key exists in the Redis database, aiding in data validation and workflow logic. By integrating these enhancements, the library would offer developers a more intuitive and efficient approach to working with Redis data, aligning with modern development patterns and best practices.