GithubHelp home page GithubHelp logo

cailongping / redisguide-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huangzworks/redis-manual-code

0.0 0.0 0.0 92 KB

《Redis使用手册》的随书示例代码。

Home Page: http://RedisGuide.com/

Python 98.95% Lua 1.05%

redisguide-code's Introduction

《Redis使用手册》随书示例程序源码

本项目展示了《Redis使用手册》一书的随书示例程序源码,其中包含缓存、锁、登录会话、社交关系、时间线、消息队列等多个经典的 Redis 应用示例,是学习和研究 Redis 的绝佳资源。

要了解关于《Redis使用手册》的更多信息,请访问书本的读者服务网站: RedisGuide.com

组织方式

本项目根据示例程序在书本中出现的大章对其进行归类,比如 string 文件夹就存放了书本《字符串》一章中的所有示例程序代码,而 sorted_set 文件夹则存放了书本《有序集合》一章中的所有示例程序代码,以此类推。

本项目的所有示例程序均配有相应的测试文件,这些文件与被测试程序处于同一文件夹之下,并且按照 Python 惯例以 test_*.py 格式进行命名:比如缓存程序 cache.py 的测试文件就为 test_cache.py ,而锁程序 lock.py 的测试文件则为 test_lock.py 等等。

版本要求

  • Redis 5.0 或以上
  • Python 3.7.3 或以上
  • redis-py 3.2.1 或以上

注意事项

警告!本项目的测试代码在运行时会清空 Redis 数据库,请确保你仅在测试环境中运行本项目的测试代码。

本项目不负担任何因为使用本项目而造成的数据丢失责任。

许可证明

本项目中的所有代码均采用知识共享署名-非商业性使用-相同方式共享进行许可。CC协议

根据协议,你可以在非商业项目中使用本项目,又或者以相同方式修改和共享本项目,但是必需指出该项目的出处,也即是“《Redis使用手册》”或者“RedisGuide.com”。

redisguide-code's People

Contributors

huangzworks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.