- 由于对象的存储的方式:环境的配置看上一篇的blog
- redis主要是存储的数据的存储的在内存中
- 由于redis的存储的方式分为一种字符串 和byte[] 两种的存储方式:所以讲对象分为两种的方式:
-
- 转换为字符串的方式:转换为json的字符串和xml的方式
-
- 转换为byte[]的数组: 对实体类进行序列化和反序列化的方式
-
- 这里我们主要对byte的 :
- 对于单个对象的存储
- 对于单个对象的存储
1 | /** |
- 对于list集合的对象的存储的方式
1 |
|