Open DhruvinDaveTis opened 1 month ago
I'm down for a PR that adds this method to the repository. A couple of things that I will require:
.exists
as that matches the Node Redis function that does the same thing..remove
command which takes a single EntityId, multiple EntityIds, or an array of EntityIds.Great idea!
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.