1 Star 0 Fork 1

huan/RedisJSON

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0
[![GitHub issues](https://img.shields.io/github/release/RedisJSON/RedisJSON.svg)](https://github.com/RedisJSON/RedisJSON/releases/latest) [![CircleCI](https://circleci.com/gh/RedisJSON/RedisJSON/tree/master.svg?style=svg)](https://circleci.com/gh/RedisJSON/RedisJSON/tree/master) [![macos](https://github.com/RedisJSON/RedisJSON/workflows/macos/badge.svg)](https://github.com/RedisJSON/RedisJSON/actions?query=workflow%3Amacos) [![Dockerhub](https://img.shields.io/badge/dockerhub-redislabs%2Frejson-blue)](https://hub.docker.com/r/redislabs/rejson/tags/) [![Total alerts](https://img.shields.io/lgtm/alerts/g/RedisJSON/RedisJSON.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RedisJSON/RedisJSON/alerts/) # RedisJSON [![Forum](https://img.shields.io/badge/Forum-RedisJSON-blue)](https://forum.redislabs.com/c/modules/redisjson) [![Discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/QUkjSsk) RedisJSON is a [Redis](https://redis.io/) module that implements [ECMA-404 The JSON Data Interchange Standard](https://json.org/) as a native data type. It allows storing, updating and fetching JSON values from Redis keys (documents). ## Primary features: * Full support of the JSON standard * [JSONPath](https://goessner.net/articles/JsonPath/) syntax for selecting elements inside documents * Documents are stored as binary data in a tree structure, allowing fast access to sub-elements * Typed atomic operations for all JSON values types * Secondary index support based on [RediSearch](https://redisearch.io) ## Quick start ``` docker run -p 6379:6379 --name redis-redisjson redislabs/rejson:latest ``` ## Documentation Read the docs at http://redisjson.io ## Build Make sure you have Rust installed: https://www.rust-lang.org/tools/install Then, build as usual: ```bash cargo build --release ``` When running the tests, you need to explicitly specify the `test` feature to disable use of the Redis memory allocator when testing: ```bash cargo test --features test ``` If you forget to do this, you'll see an error mentioning `signal: 4, SIGILL: illegal instruction`. ## Run ### Linux ``` redis-server --loadmodule ./target/release/librejson.so ``` ### Mac OS ``` redis-server --loadmodule ./target/release/librejson.dylib ``` ## Client libraries Some languages have client libraries that provide support for RedisJSON's commands: | Project | Language | License | Author | Stars | Package | | ------- | -------- | ------- | ------ | ----- | --- | | [iorejson][iorejson-url] | Node.js | MIT | [Evan Huang @evanhuang8][iorejson-author] | [![iorejson-stars]][iorejson-url] | [npm][iorejson-package] | | [node_redis-rejson][node_redis-rejson-url] | Node.js | MIT | [Kyle Davis @stockholmux][node_redis-rejson-author] | [![node_redis-rejson-stars]][node_redis-rejson-url] | [npm][node_redis-rejson-package] | | [redis-modules-sdk][redis-modules-sdk-url] | Node.js | BSD-3-Clause | [Dani Tseitlin @danitseitlin][redis-modules-sdk-author] | [![redis-modules-sdk-stars]][redis-modules-sdk-url] | [npm][redis-modules-sdk-package] | | [ioredis-rejson][ioredis-rejson-url] | Node.js | MIT | [Felipe Schulz @schulzf][ioredis-rejson-author] | [![ioredis-rejson-stars]][ioredis-rejson-url] | [npm][ioredis-rejson-package] | | [JRedisJSON][JRedisJSON-url] | Java | BSD-2-Clause | [Redis Labs][JRedisJSON-author] | [![JRedisJSON-stars]][JRedisJSON-url] | [maven][JRedisJSON-package] | | [redis-modules-java][redis-modules-java-url] | Java | Apache-2.0 | [Liming Deng @dengliming][redis-modules-java-author] | [![redis-modules-java-stars]][redis-modules-java-url] | [maven][redis-modules-java-package] | | [redisjson-py][rejson-py-url] | Python | BSD-2-Clause | [Redis Labs][rejson-py-author] | [![rejson-py-stars]][rejson-py-url] | [pypi][rejson-py-package] | | [go-rejson][go-rejson-url] | Go | MIT | [Nitish Malhotra @nitishm][go-rejson-author] | [![go-rejson-stars]][go-rejson-url] | | | [rejonson][rejonson-url] | Go | Apache-2.0 | [Daniel Krom @KromDaniel][rejonson-author] | [![rejonson-stars]][rejonson-url] | | | [NReJSON][NReJSON-url] | .NET | MIT/Apache-2.0 | [Tommy Hanks @tombatron][NReJSON-author] | [![NReJSON-stars]][NReJSON-url] | [nuget][NReJSON-package] | | [phpredis-json][phpredis-json-url] | PHP | MIT | [Rafa Campoy @averias][phpredis-json-author] | [![phpredis-json-stars]][phpredis-json-url] | [composer][phpredis-json-package] | | [redislabs-rejson][redislabs-rejson-url] | PHP | MIT | [Mehmet Korkmaz @mkorkmaz][redislabs-rejson-author] | [![redislabs-rejson-stars]][redislabs-rejson-url] | [composer][redislabs-rejson-package] | | [rejson-rb][rejson-rb-url] | Ruby | MIT | [Pavan Vachhani @vachhanihpavan][rejson-rb-author] | [![rejson-rb-stars]][rejson-rb-url] | [rubygems][rejson-rb-package]| [iorejson-author]: https://github.com/evanhuang8 [iorejson-url]: https://github.com/evanhuang8/iorejson [iorejson-package]: https://www.npmjs.com/package/iorejson [iorejson-stars]: https://img.shields.io/github/stars/evanhuang8/iorejson.svg?style=social&amp;label=Star&amp;maxAge=2592000 [node_redis-rejson-author]: https://github.com/stockholmux [node_redis-rejson-url]: https://github.com/stockholmux/node_redis-rejson [node_redis-rejson-package]: https://www.npmjs.com/package/redis-rejson [node_redis-rejson-stars]: https://img.shields.io/github/stars/stockholmux/node_redis-rejson.svg?style=social&amp;label=Star&amp;maxAge=2592000 [ioredis-rejson-author]: https://github.com/schulzf [ioredis-rejson-url]: https://github.com/schulzf/ioredis-rejson [ioredis-rejson-package]: https://www.npmjs.com/package/ioredis-rejson [ioredis-rejson-stars]: https://img.shields.io/github/stars/schulzf/ioredis-rejson.svg?style=social&amp;label=Star&amp;maxAge=2592000 [redis-modules-sdk-author]: https://github.com/danitseitlin/ [redis-modules-sdk-url]: https://github.com/danitseitlin/redis-modules-sdk [redis-modules-sdk-package]: https://www.npmjs.com/package/redis-modules-sdk [redis-modules-sdk-stars]: https://img.shields.io/github/stars/danitseitlin/redis-modules-sdk.svg?style=social&amp;label=Star&amp;maxAge=2592000 [JRedisJSON-author]: https://redislabs.com [JRedisJSON-url]: https://github.com/RedisJSON/JRedisJSON [JRedisJSON-package]: https://search.maven.org/artifact/com.redislabs/jrejson/1.2.0/jar [JRedisJSON-stars]: https://img.shields.io/github/stars/RedisJSON/JRedisJSON.svg?style=social&amp;label=Star&amp;maxAge=2592000 [redis-modules-java-author]: https://github.com/dengliming/ [redis-modules-java-url]: https://github.com/dengliming/redis-modules-java [redis-modules-java-package]: https://search.maven.org/artifact/io.github.dengliming.redismodule/redis-modules-java/ [redis-modules-java-stars]: https://img.shields.io/github/stars/dengliming/redis-modules-java.svg?style=social&amp;label=Star&amp;maxAge=2592000 [rejson-py-author]: https://redislabs.com [rejson-py-url]: https://github.com/RedisJSON/redisjson-py [rejson-py-package]: https://pypi.python.org/pypi/rejson [rejson-py-stars]: https://img.shields.io/github/stars/RedisJSON/redisjson-py.svg?style=social&amp;label=Star&amp;maxAge=2592000 [go-rejson-author]: https://github.com/nitishm [go-rejson-url]: https://github.com/nitishm/go-rejson/ [go-rejson-package]: https://www.npmjs.com/package/iorejson [go-rejson-stars]: https://img.shields.io/github/stars/nitishm/go-rejson.svg?style=social&amp;label=Star&amp;maxAge=2592000 [rejonson-author]: https://github.com/KromDaniel [rejonson-url]: https://github.com/KromDaniel/rejonson [rejonson-package]: https://www.npmjs.com/package/iorejson [rejonson-stars]: https://img.shields.io/github/stars/KromDaniel/rejonson?style=social&amp;label=Star&amp;maxAge=2592000 [NReJSON-author]: https://github.com/tombatron [NReJSON-url]: https://github.com/tombatron/NReJSON [NReJSON-package]: https://www.nuget.org/packages/NReJSON/ [NReJSON-stars]: https://img.shields.io/github/stars/tombatron/NReJSON.svg?style=social&amp;label=Star&amp;maxAge=2592000 [phpredis-json-author]: https://github.com/averias [phpredis-json-url]: https://github.com/averias/phpredis-json [phpredis-json-package]: https://packagist.org/packages/averias/phpredis-json [phpredis-json-stars]: https://img.shields.io/github/stars/averias/phpredis-json.svg?style=social&amp;label=Star&amp;maxAge=2592000 [redislabs-rejson-author]: https://github.com/mkorkmaz [redislabs-rejson-url]: https://github.com/mkorkmaz/redislabs-rejson [redislabs-rejson-package]: https://packagist.org/packages/mkorkmaz/redislabs-rejson [redislabs-rejson-stars]: https://img.shields.io/github/stars/mkorkmaz/redislabs-rejson.svg?style=social&amp;label=Star&amp;maxAge=2592000 [rejson-rb-author]: https://github.com/vachhanihpavan [rejson-rb-url]: https://github.com/vachhanihpavan/rejson-rb [rejson-rb-package]: https://rubygems.org/gems/rejson-rb [rejson-rb-stars]: https://img.shields.io/github/stars/vachhanihpavan/rejson-rb.svg?style=social&amp;label=Star&amp;maxAge=2592000 ## Acknowledgements RedisJSON is developed with <3 at [Redis Labs](https://redislabs.com). RedisJSON is made possible only because of the existance of this amazing open source project: * [redis](https://github.com/antirez/redis) ## License Redis Source Available License Agreement - see [LICENSE](LICENSE)

简介

RedisJSON - a JSON data type for Redis 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huan-gitee/RedisJSON.git
[email protected]:huan-gitee/RedisJSON.git
huan-gitee
RedisJSON
RedisJSON
master

搜索帮助