- Mastering Redis
- Jeremy Nelson
- 292字
- 2021-04-02 20:37:56
Chapter 2. Advanced Key Management and Data Structures
Using Redis as data storage in your application starts by considering two sides of the solution: the keys and the data structures used as the key values in Redis. Coming up with a good Redis key schema, syntax, and naming convention can mean the difference between an effective and sustainable solution and a technological mess. Because of the flexibility that Redis gives you by allowing most string serialization as keys, much more intentional thought and design should be given to this important step in designing a Redis-based project. Likewise, using an appropriate data structure for any particular key also directly impacts the usability and functionality of any application built with Redis. This chapter covers the following:
- Designing and managing a Redis key schema and the associated data structures
- Using Redis client object mappers that use different strategies that hide the specific key schemas and data structures
- Creating a simple application using a Javascript Redis object mapper and analyzing how the object mapper uses Redis commands and data structures as an example of a Redis key schema
- Introducing the Big O notation and how this measure of worst-case algorithmic effectiveness at scale is used in evaluating the performance of Redis's commands and how this performance directly relates to Redis's underlying data structures
This focus on the Big O notation in Redis's official documentation provides a method of estimating the time complexity of an application's use of Redis and helps in evaluating your Redis-based application's performance. Together, the Redis key and values should complement and reinforce the solution, while balancing the memory efficiencies of smaller-length keys with enough verbosity for explaining the purpose of the keys to the application designer, developer, or end user.
- Illustrator實例教程:Illustrator 2021(電子活頁微課版)
- IBM Cognos 8 Report Studio Cookbook
- 基于元胞自動機的城市路網交通流建模與仿真
- VMware虛擬化與云計算:vSphere運維卷
- 中文版3ds Max 2016/VRay效果圖制作實戰基礎教程
- Python 2.6 Graphics Cookbook
- AI圖像處理:Photoshop+Firefly后期處理技術基礎與實戰
- 人臉識別算法與案例分析
- Photoshop CS6完全自學案例教程(微課版)
- Photoshop CS6中文版基礎培訓教程
- Flash基礎與實戰教程
- 好學、好用、好玩的Photoshop 寫給初學者的入門書(第4版)
- 虛擬現實:沉浸于VR夢境
- Photoshop+CorelDRAW 字體設計與創意:草圖/實現/包裝(微課版)
- Magento: Beginner's Guide