Pear Caching system

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
zyklone
Forum Commoner
Posts: 29
Joined: Tue Nov 28, 2006 10:25 pm

Pear Caching system

Post by zyklone »

Hi,

What is the best to use for caching?

Cache_Lite or Cache?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

The difference is features. Use the simplest one that meets your needs. I believe the same person who wrote those also did the Zend Framework cache classes.
(#10850)
User avatar
zyklone
Forum Commoner
Posts: 29
Joined: Tue Nov 28, 2006 10:25 pm

Post by zyklone »

in Pear there are two caching package...
one is Cache_Lite and the other is Cache

which one is the best to use
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I believe that they are the same basic caching code, but Cache has more features.
(#10850)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

arborint wrote:The difference is features. Use the simplest one that meets your needs. I believe the same person who wrote those also did the Zend Framework cache classes.
What he said :roll:
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Cache_Lite is the one currently has a maintainer. Try that one first. Cache is a more general caching system. So if that is what you are looking for, use it. There are several others, such as the Zend Framework one I mentioned.
(#10850)
Post Reply