Space as a Cache
To use a space as a cache, you should configure it with the following attributes:
-
- Eviction Policy
- Set up an eviction policy; for example, set up a Least Recently Used (LRU) policy to determine what happens when the space is full and a request to insert a new tuple is made. In that case, and in that case only, the space will evict one of the tuples to make room for the new one. By default, spaces do not have a capacity, meaning that the capacity is unlimited. Also, by default, spaces have no eviction policy, meaning that if the space has a capacity, an attempt to insert an extra tuple will fail due to the capacity being reached.
Related concepts
Related reference
Copyright © Cloud Software Group, Inc. All rights reserved.