I saw that sequel has a caching feature but it's using memcache-
client.
I prefer the memcached version (http://github.com/fauna/memcached)
that is know to be a lot faster. Problem is that memcached API is a
bit different of memcache-client API.

Can I create a new plugin based on caching.rb that supports
memcached ?

Another point slightly different but in the same topic: I have another
use case that I would like to cache sequel model but not when it
misses the cache (like the actual plugin) but when updating/saving
only. I think it's more on application level than in a plugin to be
implemented.
I have an application that inserts/updates a lot and if I clear the
cache each time it inserts/updates, there will be to many cache miss
when finding to be useful.

I've spotted that I can only cache sequel model _before_ save or
update call, otherwise it can't be cached: "TypeError: can't dump hash
with default proc"
It's not likely a problem to cache the model before save/update
(values are the same), but when you cache a new model (not created in
database yet), you get it back from the cache and it's still
considered "new" from the model point of view.

One solution is to cache only model.values and when I get back from
cache, I initialize model with values from the cache, but I would like
to know what is the difference in the model before and after a save/
update call (where do these proc come from) ?

any suggestion is appreciated :)

Florent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to