Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • Access
  • CacheManager
  • DriverList
  • Legacy
  • Overview
  • Namespace
  • Class
  • Tree

Class Legacy

Legacy BC wrapper for cache

Direct known subclasses

Xoops\Cache, XoopsCache
Namespace: Xoops\Core\Cache
Package: Xoops\Core\Cache\Legacy
Copyright: (c) 2000-2015 XOOPS Project (www.xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Since: 2.3.0
Located at oops_lib/Xoops/Core/Cache/Legacy.php
Methods summary
public static boolean
# gc( )

Garbage collection

Garbage collection

Returns

boolean
true on success
public static boolean
# write( string $key, mixed $value, mixed $duration = 0 )

Write data for key into cache

Write data for key into cache

Parameters

$key
Identifier for the data
$value
Data to be cached - anything except a resource
$duration
time to live in seconds

Returns

boolean
True if the data was successfully cached, false on failure
public static mixed
# read( string $key )

Read a key from the cache

Read a key from the cache

Parameters

$key
Identifier for the data

Returns

mixed
The cached data, or false if the data has expired or cannot be read
public static boolean
# delete( string $key )

Delete a key from the cache

Delete a key from the cache

Parameters

$key
Identifier for the data

Returns

boolean
True if the value was successfully deleted, false if it didn't exist or couldn't be removed
public static boolean
# clear( )

Delete all keys from the cache

Delete all keys from the cache

Returns

boolean
True if the cache was successfully cleared, false otherwise
public false
# __call( string $name, array $args )

catch all deprecated message

catch all deprecated message

Parameters

$name
ignored
$args
ignored

Returns

false
public static false
# __callStatic( string $name, array $args )

catch all deprecated message for static methods

catch all deprecated message for static methods

Parameters

$name
ignored
$args
ignored

Returns

false
API documentation generated by ApiGen