redisoid
Version, currently 0.24 versions
- 0.3latestJun 19, 2018
- 0.2not indexedJun 19, 2018
- 0.1.1not indexedJun 19, 2018
- 0.1not indexedJun 19, 2018
github.com/kostya/redisoid
Redis client for Crystal with auto-reconnection and pool (wrapper for stefanwille/crystal-redis, kostya/redis-reconnect, ysbaddaden/pool). Ready to use in production.
Nothing has been indexed for 0.2 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
redisoid:
github: kostya/redisoid
version: ~> 0.2Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# redisoid
Redis client for Crystal with auto-reconnection and pool (wrapper for stefanwille/crystal-redis, kostya/redis-reconnect, ysbaddaden/pool). Ready to use in production.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
redisoid:
github: kostya/redisoid
```
## Usage
```crystal
require "redisoid"
client = Redisoid.new(host: "localhost", port: 6379, pool: 50)
client.set("bla", "abc")
p client.get("bla")
```
## Use it in high concurency code
```crystal
require "redisoid"
client = Redisoid.new(host: "localhost", port: 6379, pool: 250)
client.del("queue")
count = 0
100.times do
spawn do
loop do
client.lpush("queue", "abc")
sleep 0.01
end
end
spawn do
loop do
if res = client.lpop("queue")
count += 1 if res.size == 3
else
sleep 0.01
end
end
end
end
sleep 5.0
p count
p client.pool_size
p client.pool_pending
client.del("queue")
```
```
42259
200
204
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2- Tagged
- Jun 19, 2018
- Commit
2bddd14d63d0- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/kostya/redisoid
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 4