Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 SpaceDef : SpaceDef Operations : tibasSpaceDef_SetEvictionPolicy()

tibasSpaceDef_SetEvictionPolicy()
Function
Declaration
tibas_status tibasSpaceDef_SetEvictionPolicy(
tibasSpaceDef spaceDef,
tibas_evictionPolicy evictionPolicy)
Purpose
Specifies the eviction policy for a specified space.
Parameters
 
Remarks
Use the tibasSpaceDef_SetEvictionPolicy() function to specify the eviction policy for a specified space.
The eviction policy can be:
TIBAS_EVICTION_NONE Do not evict any tuples from the space.
TIBAS_EVICTION_LRU Use the least recently used (LRU) algorithm to evict tuples from the space when the capacity of the space is reached.
If you specify TIBAS_EVICTION_LRU, then you must also specify a capacity value for the space by calling the tibasSpaceDef_SetCapacity() function.
If you specify a capacity and a LRU policy, then if the space is full (the specified capacity has been reached) and a request to insert a new tuple is made, the space will evict one of the tuples to make room for the new one.
See Also
tibasSpaceDef_GetCapacity(), tibasSpaceDef_SetCapacity(), tibasSpaceDef_GetEvictionPolicy()

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved