Skip to content

Method cache_read

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: cache_read()

Turkce Dokumantasyon | English Documentation

Category: Cache & Buffer Methods
Submodule: AmberDB::Cache
Entry Type: Memory Cache Read


1. Definition and Overview

cache_read() fetches and deserializes a cached record from the RAM-disk memory cache (dbstore/cache/${table_id}.db). It verifies TTL expiration automatically and returns an empty list if the entry is expired or absent.


2. Syntax and Signature

my @record = $adb->cache_read($table_id, $key, [$type]);

3. Practical Code Example

my @category = $adb->cache_read("catalog_category", 12);

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally