Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.8%) to scientific vocabulary
Keywords from Contributors
Repository
:telephone_receiver::computer: Redis client for R
Basic Info
- Host: GitHub
- Owner: richfitz
- Language: R
- Default Branch: master
- Homepage: https://richfitz.github.io/redux
- Size: 1.51 MB
Statistics
- Stars: 95
- Watchers: 9
- Forks: 17
- Open Issues: 17
- Releases: 0
Metadata Files
README.md
redux
redux provides an interface to Redis. Two interfaces are provided; a low level interface (allowing execution of arbitrary Redis commands with almost no interface) and a high-level interface with an API that matches all of the several hundred Redis commands.
As well as supporting Redis commands, redux supports:
- pipelineing: execute more than one command in a single Redis roundtrip, which can greatly increase performance, especially over high-latency connections.
- socket connections: can connect to a locally running Redis instance over a unix socket (if Redis is configured to do so) for faster communication.
- flexible serialisation: serialise any part of a Redis command, including keys and fields. Binary serialisation is supported via
object_to_bin/bin_to_object, which are thin wrappers aroundserialize/unserialize - subscriptions: create a simple blocking subscribe client, applying a callback function to every message received.
- error handling: Every Redis error becomes an R error.
redux also provides a driver for storr, allowing easy exchange of R objects between computers.
Usage
Create a hiredis object:
r
r <- redux::hiredis()
The hiredis object is a hiredis object with many (many methods), each corresponding to a different Redis command.
```r r
Redis commands:
APPEND: function
AUTH: function
BGREWRITEAOF: function
BGSAVE: function
...
ZSCORE: function
ZUNIONSTORE: function
Other public methods:
clone: function
command: function
config: function
initialize: function
pipeline: function
reconnect: function
subscribe: function
type: function
```
All the methods are available from this object; for example to set "foo" to "bar", use:
r$SET("foo", "bar")
See the package vignette for more information (vignette("redux")) or https://richfitz.github.io/redux/articles/redux.html
Testing
To use the test suite, please set the environment variables
NOT_CRAN=trueREDUX_TEST_USE_REDIS=trueREDUX_TEST_ISOLATED=true
The first two opt in to using redis at all, and the third activates commands that may be destructive or undesirable to use on a production server.
Installation
Install from CRAN with
r
install.packages("redux")
or install the development version with
r
remotes::install_github("richfitz/redux", upgrade = FALSE)
See also
There is considerable prior work in this space:
rredis, the original R Redis clientRcppRedis, Dirk Eddelbuettel's R Redis client, which greatly influenced the design decisions herehiredis-rb, the Ruby Redis client that inspired the subscribe and pipeline support here.rrlite, an almost identical interface torlite, a serverless-zero configuration database with an identical interface to Redis
License
GPL-2 © Rich FitzJohn.
Owner
- Name: Rich FitzJohn
- Login: richfitz
- Kind: user
- Location: London, UK
- Company: @mrc-ide, @vimc, @reside-ic, @ropensci
- Website: https://richfitz.github.io
- Repositories: 80
- Profile: https://github.com/richfitz
GitHub Events
Total
- Watch event: 5
- Issue comment event: 1
- Push event: 8
- Pull request event: 2
Last Year
- Watch event: 5
- Issue comment event: 1
- Push event: 8
- Pull request event: 2
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rich FitzJohn | r****n@g****m | 202 |
| Jeroen Ooms | j****s@g****m | 14 |
| Kun Ren | r****n@o****m | 4 |
| Tobias Verbeke | t****e@o****u | 1 |
| Ihaddaden Mohamed El Fodil | i****l@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 38
- Total pull requests: 26
- Average time to close issues: 5 months
- Average time to close pull requests: about 1 month
- Total issue authors: 16
- Total pull request authors: 8
- Average comments per issue: 1.26
- Average comments per pull request: 1.92
- Merged pull requests: 18
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: 2 months
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 6.0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- richfitz (20)
- r2evans (3)
- renkun-ken (2)
- wlandau (1)
- arunsrinivasan (1)
- jcohen02 (1)
- HenrikBengtsson (1)
- wlandau-lilly (1)
- alanault (1)
- s-fleck (1)
- vanpeltj (1)
- picarus (1)
- dereckmezquita (1)
- jacobxk (1)
- riccardopinosio (1)
Pull Request Authors
- richfitz (11)
- jeroen (9)
- feddelegrand7 (1)
- jcohen02 (1)
- renkun-ken (1)
- tverbeke (1)
- dselivanov (1)
- r2evans (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- cran 2,499 last-month
- Total docker downloads: 353,706
-
Total dependent packages: 4
(may contain duplicates) -
Total dependent repositories: 26
(may contain duplicates) - Total versions: 7
- Total maintainers: 1
proxy.golang.org: github.com/richfitz/redux
- Documentation: https://pkg.go.dev/github.com/richfitz/redux#section-documentation
-
Latest release: v1.0.0
published about 9 years ago
Rankings
cran.r-project.org: redux
R Bindings to 'hiredis'
- Homepage: https://github.com/richfitz/redux
- Documentation: http://cran.r-project.org/web/packages/redux/redux.pdf
- License: GPL-2
-
Latest release: 1.1.5
published 10 months ago
Rankings
Maintainers (1)
conda-forge.org: r-redux
- Homepage: https://github.com/richfitz/redux
- License: GPL-2.0-only
-
Latest release: 1.1.3
published over 3 years ago
Rankings
Dependencies
- R >= 3.2.0 depends
- R6 * imports
- storr >= 1.1.1 imports
- knitr * suggests
- rmarkdown * suggests
- sys * suggests
- testthat * suggests
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- shogo82148/actions-setup-redis v1 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- shogo82148/actions-setup-redis v1 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- shogo82148/actions-setup-redis v1 composite