项目作者: patrickpissurno

项目描述 :
Redis client for V, written in V
高级语言: V
项目地址: git://github.com/patrickpissurno/vredis.git
创建时间: 2020-02-21T01:39:28Z
项目社区:https://github.com/patrickpissurno/vredis

开源协议:MIT License

下载


Redis module for V

build status
license

This module aims to be a full-featured Redis client for V

The version of this module will remain in 0.x.x unless the language API’s are finalized and implemented.

Project is now compatible with the latest V version thanks to our new contributors

Disclaimer

This project is alive, and I’m reviewing and merging pull requests as quickly as possible. Feel free to open PRs with improvements: as long as it keeps the code structure similar and passes the tests, it’ll get merged. All features should have their own tests. Thanks!

Docs

To be done. There will be better docs, but only once I get most of the basic stuff sorted out. For the time being I suggest you to take a look at the test files. They’ll provide you with enough to get started.

Features already working

  • GET
  • GETSET
  • GETRANGE
  • RANDOMKEY
  • EXISTS
  • TYPE
  • STRLEN
  • TTL
  • PTTL
  • LPOP
  • RPOP
  • LLEN
  • SET
  • SETEX
  • PSETEX
  • SETNX
  • INCR
  • INCRBY
  • INCRBYFLOAT
  • APPEND
  • SETRANGE
  • DECR
  • DECRBY
  • LPUSH
  • RPUSH
  • EXPIRE
  • PEXPIRE
  • EXPIREAT
  • PEXPIREAT
  • PERSIST
  • DEL
  • RENAME
  • RENAMENX
  • FLUSHALL
  • AUTH

Installation

  1. v up
  2. v install patrickpissurno.redis

Or if you prefer using vpkg:

  1. vpkg get redis

Testing

Tests are being implemented alongside every feature. This module is being developed with a 100% coverage goal.

Every commit triggers GitHub Actions to build and test this module.

If you want to run tests manually, be sure to have a Redis server running locally at 127.0.0.1:6379. Then clone this repo and run:

  1. v test .

Contributors

License

MIT License

Copyright (c) 2020-2023 Patrick Pissurno

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.