ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:learn_caching:introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v5:userguide:learn_caching:introduction [2016/03/27 19:27]
mnewnham [Solutions From ADOdb]
v5:userguide:learn_caching:introduction [2016/03/28 03:10] (current)
mnewnham
Line 1: Line 1:
 +<-  ^ v5:​userguide:​userguide_index|List Of Tutorials ^ v5:​userguide:​learn_caching:​disk_caching|Disk Based Caching ->
 +~~NOTOC~~
 ====== Caching Result Sets ====== ====== Caching Result Sets ======
 ===== Description ===== ===== Description =====
Line 15: Line 17:
  
   - A traditional,​ simple disk based caching system that can be installed locally   - A traditional,​ simple disk based caching system that can be installed locally
-  - A remote memory caching server based on memcached.+  - A remote memory caching server based on [[https://memcached.org/​|Memcached]]
  
-===== System Requirements ===== +Once implemented, ​the coding methodologies ​are the same
-The directory where the queries ​are saved is controlled by the variable [[v5:​reference:​adodb_cache_dir|$ADODB_CACHE_DIR]] +
-===== Default Cache Secs ===== +
-The parameter ''​$cacheSecs''​ sets the default value of the time in seconds that cached queries are saved. If not set then the value is 3600. It can be set via either a normal connection object or a DSN type connection configuration. +
- +
-This default value can be overridden on a query by query basis +
- +
-<code php> +
-/* +
- * A connection object assumed +
- */ +
-$ADODB_CACHE_DIR = '​d:/​queries';​ +
-$db->​cacheSecs ​  = 6000; +
-</​code>​ +
- +
-{{tag>​[cache]}}+
v5/userguide/learn_caching/introduction.txt · Last modified: 2016/03/28 03:10 by mnewnham