archive-com.com » COM » S » SOLARPHP.COM

Total: 875

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Solar Framework : Class : Solar_Cache_Adapter : Config
    or not the cache should be active at instantiation Default true life int The lifetime of each cache entry in seconds Default 0 prefix string A prefix to place in front of every cache entry key e g use this to deconflict between identical cache keys in caches shared among different domains or environments Default null Prev Up Next Overview Home Constants Local Navigation Home Project Packages Classes Manual Bugs

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.Config (2016-02-13)
    Open archived version from archive


  • Solar Framework : Class : Solar_Cache_Adapter : Properties
    not define config defaults in config directly php DO NOT DO THIS protected config array foo bar baz dib Instead define config defaults in a protected property named for the class withan underscore prefix For exmple a Vendor Class Name class would define the default config array in Vendor Class Name This convention lets child classes inherit parent config keys and values php DO THIS INSTEAD protected Vendor Class Name

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.Properties (2016-02-13)
    Open archived version from archive

  • Solar Framework : Class : Solar_Cache_Adapter : Methods
    entry deleteAll Deletes all entries from the cache dump Convenience method for getting a dump the whole object or one of its properties or an external variable entry Returns the adapter specific name for the entry key fetch Gets cache entry data fetchOrAdd Fetches data if it exists if not uses a callback to create the data and adds it to the cache in a race condition safe way fetchOrSave Fetches data if it exists if not uses a callback to create the data and saves it to the cache getLife Gets the cache lifetime in seconds increment Increments a cache entry value by the specified amount isActive Gets the current activity state of the cache on or off locale Looks up class specific locale strings based on a key save Updates cache entry data inserting if it does not already exist setActive Makes the cache active true or inactive false Protected buildConfig Builds and returns the default config for a class including all configs inherited from its parents exception Convenience method for returning exceptions with localized text fetchOrInsert Support method for fetchOrSave and fetchOrAdd postConfig A hook that activates after buildConfig in the constructor postConstruct Post construction tasks to

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.Methods (2016-02-13)
    Open archived version from archive

  • Solar Framework : Class : Solar_Cache_Adapter : _fetchOrInsert
    for inserting created data typically add or save string key The entry ID callback callback A PHP callback to use if the data needs to be created for insert array args Arguments to the callback if any int life A custom lifespan in seconds for the entry if null uses the default lifespan for the adapter instance Returns mixed The fetched or created data Description Support method for fetchOrSave and

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter._fetchOrInsert (2016-02-13)
    Open archived version from archive

  • Solar Framework : Class : Solar_Cache_Adapter : Add
    not already exist Useful for avoiding race conditions when one or more processes may be writing to the same entry This method will not update an existing entry if the entry already exists this method will not replace it For example to add an array in the cache php create a cache object cache Solar factory Solar Cache create a unique ID id my array set up some data to

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.add (2016-02-13)
    Open archived version from archive

  • Solar Framework : Class : Solar_Cache_Adapter : Delete
    Parameters string key The entry ID Returns void Description Deletes a cache entry php create a request object request Solar Registry get request create an entry ID named for the current URI id request server REQUEST URI create a cache object cache Solar factory Solar Cache delete any cache entry with that ID cache delete id Prev Up Next Solar Cache Adapter add Home Solar Cache Adapter deleteAll Local Navigation

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.delete (2016-02-13)
    Open archived version from archive

  • Solar Framework : Class : Solar_Cache_Adapter : Entry
    identifier you specify for cache entries For example the Solar Cache Adapter File HomePage file adapter names the cache entries based on an MD5 hash of the entry ID This method tells you what the adapter is using as the name for the cache entry php create a request object request Solar Registry get request create an entry ID named for the current URI id request server REQUEST URI create

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.entry (2016-02-13)
    Open archived version from archive

  • Solar Framework : Class : Solar_Cache_Adapter : Fetch
    and so on If the cache entry does not exist or if it has passed its lifetime defined in the adapter s config keys the function will return boolean false otherwise it will return the contents of the cache entry For example to get a cache entry identified by a web page name you could do this php create a request object request Solar Registry get request get the request

    Original URL path: http://solarphp.com/apidoc/class.Solar_Cache_Adapter.fetch (2016-02-13)
    Open archived version from archive



  •