Overview

Namespaces

  • Kotchasan
    • Cache
    • Database
    • Http
    • Log
    • Orm
  • None
  • PHP
  • Psr
    • Cache
    • Http
      • Message
    • Log

Classes

  • ApcCache
  • Cache
  • CacheItem
  • FileCache

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree

Class CacheItem

Cache Item.

Kotchasan\Cache\CacheItem implements Psr\Cache\CacheItemInterface
Namespace: Kotchasan\Cache
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/Cache/CacheItem.php
Methods summary
public
# __construct( string $key )

Class constructor.

Class constructor.

Parameters

$key
Cache Key
public static
# expiresAfter( integer|DateInterval $time )

กำหนดอายุของแคช (วินาที).

กำหนดอายุของแคช (วินาที).

Parameters

$time

Returns

static

Implementation of

Psr\Cache\CacheItemInterface::expiresAfter()
public static
# expiresAt( DateTimeInterface $expiration )

กำหนดวันที่และเวลาหมดอายุของแคช.

กำหนดวันที่และเวลาหมดอายุของแคช.

Parameters

$expiration

Returns

static

Implementation of

Psr\Cache\CacheItemInterface::expiresAt()
public mixed
# get( )

อ่านค่าของแคช.

อ่านค่าของแคช.

Returns

mixed

Implementation of

Psr\Cache\CacheItemInterface::get()
public string
# getKey( )

อ่านค่าคีย์ของแคช.

อ่านค่าคีย์ของแคช.

Returns

string

Implementation of

Psr\Cache\CacheItemInterface::getKey()
public boolean
# isHit( )

ฟังก์ชั่นตรวจสอบว่ามีการกำหนดข้อมูลลงในแคชหรือไม่ คืนค่า true ถ้ามีการใส่ value ในแคชแล้ว.

ฟังก์ชั่นตรวจสอบว่ามีการกำหนดข้อมูลลงในแคชหรือไม่ คืนค่า true ถ้ามีการใส่ value ในแคชแล้ว.

Returns

boolean

Implementation of

Psr\Cache\CacheItemInterface::isHit()
public static
# set( mixed $value )

กำหนดค่า.

กำหนดค่า.

Parameters

$value

Returns

static

Implementation of

Psr\Cache\CacheItemInterface::set()
Kotchasan API documentation generated by ApiGen