Can you provide a simple example for hmmm, the ObjectCache incl. saving and 
loading?

 

Von: Julian Vidal [mailto:[email protected]] 
Gesendet: Dienstag, 3. Juni 2014 23:17
An: Marc Tempelmeier
Cc: Zend Framework General
Betreff: Re: [fw-general] Zend\Cache\Pattern

 

The "storage" is just an adapter that saves the data in different locations 
depending on which adapter you use (disk, memcached, etc).

The patterns are much higher level and are designed to solve a specific caching 
problem. The one I use most often is the CaptureCache. It is designed to 
"capture" the output of a web page and store it into a file while keeping the 
directory structure the same as the url. The pattern uses a storage and not the 
other way around.

You could use just a storage to capture a web page but you'd have to code a lot 
more to generate the files, create the directory structure, etc, etc. That's 
what the pattern does.

Each pattern solves a specific high level problem if you will. Each storage 
just deals with saving your data and that's it.  

 

On Tue, Jun 3, 2014 at 9:03 AM, Marc Tempelmeier 
<[email protected]> wrote:

Hi,

what ist he purpose of the cache patterns?
How can I use them? When should I use the storage or the pattern?

Greetings

Marc

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]



 

Reply via email to