{"id":22025184,"url":"https://github.com/drexed/lite-redis","last_synced_at":"2025-05-07T09:34:47.876Z","repository":{"id":35007743,"uuid":"195866288","full_name":"drexed/lite-redis","owner":"drexed","description":"Access Redis with an ActiveRecord like ORM interface","archived":false,"fork":false,"pushed_at":"2023-01-19T01:22:10.000Z","size":117,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-03T03:50:04.175Z","etag":null,"topics":["activerecord","orm","rails","redis","ruby"],"latest_commit_sha":null,"homepage":"https://drexed.github.io/lite-redis","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drexed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-08T18:29:58.000Z","updated_at":"2022-11-19T14:43:53.000Z","dependencies_parsed_at":"2023-02-10T19:30:46.461Z","dependency_job_id":null,"html_url":"https://github.com/drexed/lite-redis","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drexed","download_url":"https://codeload.github.com/drexed/lite-redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252851647,"owners_count":21814187,"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":["activerecord","orm","rails","redis","ruby"],"created_at":"2024-11-30T07:14:51.990Z","updated_at":"2025-05-07T09:34:47.854Z","avatar_url":"https://github.com/drexed.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lite::Redis\n\n[![Gem Version](https://badge.fury.io/rb/lite-redis.svg)](http://badge.fury.io/rb/lite-redis)\n[![Build Status](https://travis-ci.org/drexed/lite-redis.svg?branch=master)](https://travis-ci.org/drexed/lite-redis)\n\nLite::Redis is a library for accessing Redis with an ActiveRecord like ORM interface.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'lite-redis'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lite-redis\n\n## Table of Contents\n\n* [Configurations](#configurations)\n* [Pooling](#pooling)\n* [Commands](#commands)\n* [Callers](#callers)\n\n## Configurations\n\n`rails g lite:redis:install` will generate the following file in your application root:\n`config/initalizers/lite_redis.rb`\n\n```ruby\nLite::Redis.configure do |config|\n  config.client = Redis.new\nend\n```\n\n## Pooling\n\nUse the [Connection Pool](https://github.com/mperham/connection_pool) gem to improve connection performance. Also look into [hiredis](https://github.com/redis/redis-rb#hiredis) driver to improve performance even further lists and ranges.\n\n```ruby\nLite::Redis.configure do |config|\n  config.client = ConnectionPool::Wrapper.new(size: 5, timeout: 5) { Redis.new }\nend\n```\n\n## Commands\n\n* [Connection](https://github.com/drexed/lite-redis/blob/master/docs/CONNECTION.md)\n* [Geo](https://github.com/drexed/lite-redis/blob/master/docs/GEO.md)\n* [Hash](https://github.com/drexed/lite-redis/blob/master/docs/HASH.md)\n* [Hyper Log Log](https://github.com/drexed/lite-redis/blob/master/docs/HYPER_LOG_LOG.md)\n* [Key](https://github.com/drexed/lite-redis/blob/master/docs/KEY.md)\n* [List](https://github.com/drexed/lite-redis/blob/master/docs/LIST.md)\n* [PubSub](https://github.com/drexed/lite-redis/blob/master/docs/PUB_SUB.md)\n* [Script](https://github.com/drexed/lite-redis/blob/master/docs/SCRIPT.md)\n* [Set](https://github.com/drexed/lite-redis/blob/master/docs/SET.md)\n* [Sorted Set](https://github.com/drexed/lite-redis/blob/master/docs/SORTED_SET.md)\n* [String](https://github.com/drexed/lite-redis/blob/master/docs/STRING.md)\n* [Transaction](https://github.com/drexed/lite-redis/blob/master/docs/TRANSACTION.md)\n\n## Callers\n\nRedis commands could be via a class or instance call.\nInstance access reuses a Redis connection for better performance.\n\n#### Instance\n```ruby\nstring = Lite::Redis::String.new\nstring.create(:example, '123')\nstring.find(:example)\n```\n\n#### Class\n```ruby\nLite::Redis::String.create(:example, '123')\nLite::Redis::String.find(:example)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/drexed/lite-redis. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Lite::Redis project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drexed/lite-redis/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrexed%2Flite-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-redis/lists"}