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 Cache

Kotchasan Caching Class (base class).

Kotchasan\KBase
Extended by Kotchasan\Cache\Cache implements Psr\Cache\CacheItemPoolInterface

Direct known subclasses

Kotchasan\Cache\ApcCache, Kotchasan\Cache\FileCache
Abstract
Namespace: Kotchasan\Cache
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/Cache/Cache.php
Methods summary
public boolean
# commit( )

บันทึกรายการแคชในคิว คืนค่า true ถ้าสำเร็จ, ถ้ามีบางรายการไม่สำเร็จคืนค่า false.

บันทึกรายการแคชในคิว คืนค่า true ถ้าสำเร็จ, ถ้ามีบางรายการไม่สำเร็จคืนค่า false.

Returns

boolean

Implementation of

Psr\Cache\CacheItemPoolInterface::commit()
public boolean
# deleteItem( string $key )

ลบแคช คืนค่า true ถ้าสำเร็จ, false ถ้าไม่สำเร็จ.

ลบแคช คืนค่า true ถ้าสำเร็จ, false ถ้าไม่สำเร็จ.

Parameters

$key

Returns

boolean

Throws

InvalidArgumentException

Implementation of

Psr\Cache\CacheItemPoolInterface::deleteItem()
public Psr\Cache\CacheItemInterface
# getItem( string $key )

อ่านแคช.

อ่านแคช.

Parameters

$key

Returns

Psr\Cache\CacheItemInterface

Throws

InvalidArgumentException

Implementation of

Psr\Cache\CacheItemPoolInterface::getItem()
public boolean
# saveDeferred( Psr\Cache\CacheItemInterface $item )

กำหนดรายการแคชสำหรับบันทึกในภายหลัง คืนค่า false ถ้าไม่มีรายการในคิว.

กำหนดรายการแคชสำหรับบันทึกในภายหลัง คืนค่า false ถ้าไม่มีรายการในคิว.

Parameters

$item

Returns

boolean

Implementation of

Psr\Cache\CacheItemPoolInterface::saveDeferred()
Methods inherited from Psr\Cache\CacheItemPoolInterface
clear(), deleteItems(), getItems(), hasItem(), save()
Properties summary
protected array $deferred

รายการแคชรอบันทึก

รายการแคชรอบันทึก

# array()
Properties inherited from Kotchasan\KBase
$cfg, $request
Kotchasan API documentation generated by ApiGen