cowtowncoder/low-gc-membuffers — Issue #5: Return no longer used MemBuffer to MemBuffers
Author: ngocdaothanh
Created: 2011-12-01 02:41:47+00:00
State: open

MemBuffer is created from MemBuffers like this:

MemBuffer items = bufs.createBuffer(2, 5);

Is there a way to return MemBuffer to MemBuffers when I do not need to use it any more? I want to implement a memory cache, so after the cache is expired I want to return MemBuffer to MemBuffers so MemBuffers can reuse the memory.