Cascade Core  v0.12-1-g22cbbeb
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
IConfig Interface Reference

Interface to configuration loader. More...

Inheritance diagram for IConfig:
Inheritance graph

Public Member Functions

 clearCache ()
 Clear cache. More...
 
 load ($name, $force_cache_reload=false)
 Load and compose configuration from the storage. More...
 

Detailed Description

Interface to configuration loader.

Each entry is identified with name and contains some structured data similar to JSON document.

Member Function Documentation

clearCache ( )

Clear cache.

This should be called after deploy.

Implemented in JsonConfig, and JsonConfigAPC.

load (   $name,
  $force_cache_reload = false 
)

Load and compose configuration from the storage.

If $force_cache_reload is true, the cache should be ignored while retrieving the configuration, but the cache should be updated once data are retrieved.

Implemented in JsonConfig.