If all you need is a vector similar to the cache interface, then it is likely that the index cache for the values will meet your needs. I guess a little about your specific problem, although it seems likely that using numbers as keys to your cache will fill in many use cases , because vectors are conceptually very similar to number cards with values:
user> (def C (cache/fifo-cache-factory {0 1 1 0})) user> (get C 0) 1
if this is not enough, you can see the current contents of your cache as such a vector:
user> (vec (map
In most cases, the likelihood that using numbers as indices will do the job for many people.
source share