Overview

Namespaces

  • momentphp
    • exceptions
    • interfaces
    • middlewares
    • providers
    • traits
  • None

Classes

  • App
  • Bundle
  • Cache
  • CallableResolver
  • Config
  • Controller
  • Database
  • DebugInfo
  • Error
  • ExceptionHandler
  • FlashMessages
  • Helper
  • Log
  • Middleware
  • Model
  • ObjectCache
  • Provider
  • Registry
  • Router
  • Settings
  • SmartyViewEngine
  • Template
  • TwigViewEngine
  • View
  • Overview
  • Namespace
  • Class

Class ObjectCache

ObjectCache

Namespace: momentphp
Located at ObjectCache.php
Methods summary
public
# __invoke( object $object, object $store, array $options )

Initialize

Initialize

Parameters

$object
$store
$options
public mixed
# ocCall( string $method, array $args = [] )

Call and cache a class method

Call and cache a class method

Parameters

$method
$args

Returns

mixed
protected string
# ocCacheKey( callable $callback, array $args = [] )

Return cache key

Return cache key

Parameters

$callback
$args

Returns

string
protected string
# ocArgumentsKey( mixed $args )

Return arguments key

Return arguments key

Parameters

$args

Returns

string
public mixed
# __call( string $method, array $args )

Proxy calls to underlying object

Proxy calls to underlying object

Parameters

$method
$args

Returns

mixed
Properties summary
protected array $ocOptions

Options

Options

# [ 'enabled' => true, 'ttl' => 30, 'ttlMap' => [], 'cacheMethods' => [], 'nonCacheMethods' => [] ]
MomentPHP API documentation generated by ApiGen