java - Using RedisTemplate to manipulate data
世界只因有你
世界只因有你 2017-05-16 13:19:25
0
1
604

The difference between using RedisTemplate's execute() method and opsFor*() to operate data

世界只因有你
世界只因有你

reply all(1)
世界只因有你

Answer by yourself:

  1. execute() requires a RedisConnection object, and operating Redis through RedisConnection is called Low-Level Abstractions

  2. opsFor and the like are called High-Level Abstractions, which are designed to provide more friendly template classes. The bottom layer still calls execute(), which requires a RedisConnection object. So I think opsFor is a further encapsulation of execute().
    If you have a better understanding, please feel free to communicate.

Reference documentation

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!