Skip to content

Method cache_write

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: cache_write()

Turkce Dokumantasyon | English Documentation

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


1. Definition and Overview

cache_write() serializes and writes record data into the RAM-disk memory cache file (dbstore/cache/${table_id}.db).


2. Syntax and Signature

$adb->cache_write($table_id, $key, @records);

3. Practical Code Example

$adb->cache_write("catalog_product", "featured_products", [ 101, "Prod A" ], [ 102, "Prod B" ]);

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