Documentation


SEARCH

TABLE OF CONTENT

    1. Getting started 2. Basic concepts 3. Request dispatching 4. Context container 5. Dual MVC 6. Component model: 7. Security 8. Configuration 9. Session handling 10. I18n 11. Cache 12. Logging 13. Error handling 14. Advanced Topics 15. API reference

      Tutorials: Frequently Asqued Questions

      See also:


      Class: __Cache


      Class Overview

      This class is the one in charge of cache management.

      It can be retrieved from the context by calling to __Context::getCache() method. i.e.

      1.  //get the cache from the application context:
      2.  $cache __ApplicationContext::getInstance()->getCache();

      This class exposes methods to set/get/load/save and clear the cache. It contains a cache handler (a class implementing the __ICacheHandler interface) that is the one in charge of handle the cache storage, so the __Cache class acts a facade in that sense.


      
      
      				

      Methods

      [ Top ]

      Method Summary

      __Cache   __construct()  
      void   clear()  
      void   &getData()  
      void   removeData()  
      void   setData()  

      [ Top ]

      Methods

      Constructor __construct


        __Cache __construct( )

      Access:  public



      clear


        void clear( )

      Access:  public



      getData


        void &getData( $key, [ $ttl = null]  )


      Parameters:
      TypeNameDescription
      $key
      $ttl

      Access:  public



      removeData


        void removeData( $key  )


      Parameters:
      TypeNameDescription
      $key

      Access:  public



      setData


        void setData( $key, &$data, [ $ttl = null]  )


      Parameters:
      TypeNameDescription
      $key
      &$data
      $ttl

      Access:  public