{"repo":"microwww/redis-mock","free":true,"listed":false,"github":"https://github.com/microwww/redis-mock","clone":"git clone https://github.com/microwww/redis-mock.git","description":"redis server for java, java redis mock","language":"Java","stars":60,"topics":["redis","java","redis-mock","mock-redis"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Redis-server Pure Java implementation redis-server. Embedded redis service when unit testing. You no longer need to Mock redis apis. 1. Support redis api 2.8 2. jedis-3.0+ api is changed, so you must update it to 0.1.0-3.0 if you are using the latest api 3. version 0.2.0 remove jedis dependence, There is no need for any external dependencies. 4. version 0.2.2 support PubSubOperation 5. version 0.2.3 ChannelInputStream to ByteBuffer , it is non blocking. 6. support RESP-3, to connect by HELLO , from release 0.3.0 7. support HyperLogLog from 8. support Lua-script from 9. Next BY AI 10. version 0.3.5 Geospatial ( GEO ), and extended Set / List / String / Hash commands (see Supported commands below). maven dependency Using You can set port to 0, server will bind at random port , you can get it by server.getLocalSocketAddress if you are using spring boot, you can start like this : server will run with spring config : spring.redis.host , spring.redis.port A better option is to add dependencies: Supported commands Supported redis commands : ConnectionOperation AUTH, ECHO, PING, QUIT, SELECT, HELLO , HashOperation HDEL, HEXISTS, HGET, HGETALL, HINCRBY, HINCRBYFLOAT, HKEYS, HLEN, HMGET, HMSET, HSCAN, HSET, HSETNX, HVALS, HRANDFIELD , HSTRLEN , GeoOperation GEOADD, GEODIST, GEOHASH, GEOPOS, GEORADIUS, GEORADIUSBYMEMBER, GEORADIUS RO, GEORADIUSBYMEMBER RO, HyperLogLog PFADD, PFCOUNT, PFMERGE, KeyOperation DEL, EXISTS, EXPIRE, EXPIREAT, KEYS, MOVE, PERSIST, PEXPIRE, PEXPIREAT, PTTL, RAND","default_branch":null,"files":null,"tree":[],"storefront":"/r/microwww","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/microwww/redis-mock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}