Re: Cache and Store

Bob Ham <[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
On Wed, 2007-05-09 at 12:03 +0100, Michael Rogers wrote:

> Would it be possible to dynamically balance the amount of space 
> allocated to the cache and store? Here's what I have in mind: when the 
> cache is below its quota and a key is cached, remove the least recently 
> used key from the store instead of the cache. And vice versa: when the 
> store is below its quota and a key is stored, remove the least recently 
> used key from the cache.

That was what I proposed near the start of this thread.  I would note,
as well, that the store-shrinking code should already exist for cases
when the user reduces the configured size of the store.

Bob

-- 
Bob Ham <[email protected]>

_______________________________________________
Tech mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGQiDU7whsMRnFexQRAnKnAKCy+ieX94QkAn52Su6BYcD88ZiknwCfa4WE
ugewksXL57aNKsFL7ErQALc=
=iBTt
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.