Skip to content

Method cache_setup

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: cache_setup()

Turkce Dokumantasyon | English Documentation

Category: Cache & Buffer Methods
Submodule: AmberDB::Cache
Entry Type: Environment Diagnostics


1. Definition and Overview

cache_setup() inspects the operating system environment (Linux tmpfs or Windows ImDisk), detects whether a RAM-disk is mounted under dbstore/cache/, and returns diagnostic metadata, configured cache sizes, and helper script paths.


2. Syntax and Signature

my $diag_hashref = $adb->cache_setup();

3. Practical Code Example

my $diag = $adb->cache_setup();
print "RAM-Disk Mounted: " . ($diag->{is_mounted} ? "YES" : "NO") . "\n";
print "Cache Path: $diag->{cache_dir}\n";

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