Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • Cache

Class Cache

Wrapper for caching data.

Final
Namespace: Core\Modules\Cache
Located at modules/cache/cache.php

Methods summary

private
# __construct( string $adapter )

Cache constructor.

Cache constructor.

Parameters

$adapter
Cache Adapter.

Throws

DomainException
Not supported Cache adapter.
InvalidArgumentException
Not compatible Cache adapter type.
public
# __clone( )

Cloning of Cache is disallowed.

Cloning of Cache is disallowed.

final public static Core\Modules\Cache\Cache
# getInstance( string $adapter )

Returns an instance of the Cache object.

Returns an instance of the Cache object.

Parameters

$adapter
Adapter name.

Returns

Core\Modules\Cache\Cache

Uses

Core\Registry()
public boolean
# store( string $key, mixed $value, integer $expire = 0 )

Stores value by key.

Stores value by key.

Parameters

$key
Cache key.
$value
Cache value.
$expire
Expire time, in seconds(optional).

Returns

boolean
public mixed
# fetch( string $key )

Fetches stored value by key.

Fetches stored value by key.

Parameters

$key
Cache key.

Returns

mixed
public boolean
# exists( string $key )

Checks if a key-value pair exists.

Checks if a key-value pair exists.

Parameters

$key
Cache key.

Returns

boolean
public boolean
# remove( string $key )

Removes a key-value pair.

Removes a key-value pair.

Parameters

$key
Cache key.

Returns

boolean

Properties summary

private static Core\Modules\Cache\Cache $instance

Reference to the current instance of the Cache object.

Reference to the current instance of the Cache object.

# null
private mixed $adapter

Reference to the current adapter of the Cache object.

Reference to the current adapter of the Cache object.

# null
Silla.IO API API documentation generated by ApiGen