https://github.com/creadone/cord
Crystal shard for Tarantool with auto reconnect and connections pool
https://github.com/creadone/cord
crystal pool reconnect shard tarantool
Last synced: 8 months ago
JSON representation
Crystal shard for Tarantool with auto reconnect and connections pool
- Host: GitHub
- URL: https://github.com/creadone/cord
- Owner: creadone
- License: mit
- Created: 2018-11-08T10:27:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T16:04:49.000Z (over 6 years ago)
- Last Synced: 2025-01-02T04:27:10.424Z (9 months ago)
- Topics: crystal, pool, reconnect, shard, tarantool
- Language: Crystal
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Сord
Crystal shard for Tarantool with auto reconnect and connections pool based on original shard for Redis by [kostya/redisoid](https://github.com/kostya/redisoid) but slightly adapted. Also shard uses [ysbaddaden/pool](https://github.com/ysbaddaden/pool) and [vladfaust/tarantool.cr](https://github.com/vladfaust/tarantool.cr) of course.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
cord:
github: creadone/cord
```## Usage
```crystal
require "cord"tarantool = Сord::Connection.new(host: "localhost", port: 6379, pool: 50)
tarantool.ping #=> 00:00:00.000159976
```## Tests
TODO