weakrefs and object caching

T

tele

Hi,

i need to memorize in a Cache some object that i identify through a
attribute my_id.
base on some event i update the attributes of the objects in the cache
and when the processing is done i can remove the object from cache.

I found some solution:

The memoizable library that can serialize/deserialize object in memory
or in a file.

then the Weakrefs of ruby stdlib, in particular i've found this link:

http://eigenclass.org/hiki.rb?weakhash+and+weakref


For performance reasons and whatever what do you advise me to do?
examples,solutions, useful link?

thank you

:tele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top