Constructor RandomEvictionCache RandomEvictionCache(Int32) Constructor. Declaration public RandomEvictionCache(int capacity) Parameters Type Name Description System.Int32 capacity Max number of items in the cache before eviction begins.