IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Api
  • ApiCode
  • Attach
  • Cache
  • Cloud
  • Convert
  • Credit
  • Database
  • DateTime
  • Env
  • File
  • Ftp
  • IBOS
  • Image
  • Mail
  • Module
  • Org
  • Page
  • PHPExcel
  • String
  • System
  • Upgrade
  • Url
  • WebSite
  • Xml
  • XMLParse

Class Cache

Namespace: application\core\utils
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/utils/Cache.php

Methods summary

public static string
# check( )

检查缓存组件

检查缓存组件

Returns

string
public static boolean
# set( string $key, mixed $value, mixed $ttl = null )

设置一个缓存值

设置一个缓存值

Parameters

$key
缓存的key
$value
缓存的值
$ttl
缓存的有效期

Returns

boolean
public static boolean
# get( string $key )

根据$id获取一个缓存值

根据$id获取一个缓存值

Parameters

$key
缓存的key

Returns

boolean
public static boolean
# rm( string $key )

根据$key移除一个缓存值

根据$key移除一个缓存值

Parameters

$key
缓存的key

Returns

boolean
public static boolean
# clear( )

清空缓存接口

清空缓存接口

Returns

boolean
public static boolean
# load( mixed $cacheNames, boolean $force = false )

加载缓存

加载缓存

Parameters

$cacheNames
字符串或数组的缓存名
$force
强制更新缓存

Returns

boolean
public static
# save( string $cacheName, mixed $value )

更新系统缓存

更新系统缓存

Parameters

$cacheName
缓存名
$value
缓存值
public static mixed
# update( mixed $cacheName = '' )

更新缓存

更新缓存

Parameters

$cacheName
可以是字符串,也可以是数组

Returns

mixed

Constants summary

string CACHE_ALIAS
# 'application.core.cache.provider'
IBOS open source API documentation generated by ApiGen