Giter Club home page Giter Club logo

tinyredis's Introduction

tinyredis

简介

用 java 实现的 redis, 继续更新。
如果你感兴趣, 请点 Star


已实现命令

  • auth

  • monitor

  • select

  • del

  • get

  • set

  • setnx

  • setex

  • psetex

  • mget

  • expire

  • ttl

  • pttl

  • type

  • hset

  • hget

  • hdel

使用

启动

com.github.cjqcn.tinyredis.remote.RemoteServer.main 启动程序
启动日志:

[2020-02-15 21:01:49.584] - [INFO] - [com.github.cjqcn.tinyredis.remote.RemoteServer:74] - [Method = main] - [Started redis at address localhost/127.0.0.1:6379, cost 3112ms]```

访问

127.0.0.1:6379> set key value
(error) NOAUTH Authentication required.
127.0.0.1:6379> auth password
OK
127.0.0.1:6379> set key value
OK
127.0.0.1:6379> get key
value
127.0.0.1:6379> select 2
OK
127.0.0.1:6379[2]> get key
NULL
127.0.0.1:6379[2]> select 0
OK
127.0.0.1:6379> get key
value
127.0.0.1:6379>

tip: /doc/windows/redis-cli.exe 为 windows 下的 redis 客户端

tinyredis's People

Contributors

cjqcn 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.