I'm using mongodb gridfs for a kind of file cache where I store binary data including some metadata. Cause my disk space is limited I cannot store all my files in the mongodb, so I'd like to apply a FIFO algorithm.
I've found the capped collections which seem to fit perfectly for this case but mongo stores gridfs data in two different collection (fs.chunks und fs.files) which are closely related. It is possible to define one (or both?) of these collections as capped or will I get zombie data in the other collection?