Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/askmiw/redisdb
像操作数据库一样操作redis
https://github.com/askmiw/redisdb
java java-8 redis redisdb
Last synced: 1 day ago
JSON representation
像操作数据库一样操作redis
- Host: GitHub
- URL: https://github.com/askmiw/redisdb
- Owner: askmiw
- Created: 2018-08-29T02:28:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T04:21:14.000Z (about 6 years ago)
- Last Synced: 2024-10-12T16:23:28.357Z (about 1 month ago)
- Topics: java, java-8, redis, redisdb
- Language: HTML
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redisdb
像操作数据库一样操作redis
### 样例
```java
...前面初始化jedisPool
Jedis redis = jedisPool.getResource();
User user = ....需要保存的数据初始化
RedisDB db = new RedisDB(redis, "Test");
db.save(user); //保存//查询
List list = db
.has("name", "hello world") //查询姓名为 hello world的记录
.execQuery(User.class);
for (User o : list) {
System.out.println(o);
}
```