Hi,
have a look at:
http://www.symfony-project.org/book/1_0/18-Performance#Caching%20the%20Resul
t%20of%20a%20Function%20Call

you can also use APC or eZCache for that.
There is a wrapper for that in sf1.0
I wonder why Fabien has deprecated it for 1.1:
sfProcessCache (lib/cache)

[in sf 1.1 you have to state the engine you want to use explicitly]

.:Fabian

-----Original Message-----
From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of pihentagy
Sent: Donnerstag, 10. April 2008 18:13
To: symfony users
Subject: [symfony-users] low level cache?


Hi all!

Is there a way to store arbitrary data in the cache? (I mean, neither
view, not partial, just data of my taste)

I have tried
                                                $cache =
$this->getContext()->getViewCacheManager();
                                                if(!$cache->has('mykey')) {
                                                        $categories = ...; #
expensive calculation
        
if(!$cache->set($categories, 'mykey')) {
                                                                print
"SOMETHING IS WRONG";
                                                        }
                                                }

But set always returns false :(

So how should I use the cache to store arbitrary data?



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

Reply via email to