A method for performing efficient caching through an enumeration process is provided.
The objects residing on the storage medium are cached in the order that these objects
are kept in the directory of the storage medium. As a result, the directory content
is enumerated in the cache. Therefore, the cache does not have to be associated
with the server layout. Moreover, it is further possible to support a hierarchy
of distributed caches using the disclosed invention.