Daylight v4.9
Release Date: 1 February 2008


dt_thor_cache - specify the caching strategy for a database

Generic Prototype

dt_thor_cache(dt_Handle, dt_Integer) => dt_Boolean

C Prototype

#include "dt_thor.h"

dt_Boolean dt_thor_cache(dt_Handle database, dt_Integer level)

FORTRAN Prototype

include ''

logical dt_f_thor_cache(database, level)

integer*4 database
integer*4 level


Enables caching, at the specified level 'level' for the database. Levels are:
  DX_THOR_CACHE_OFF            no caching
  DX_THOR_CACHE_WRITETHRU      write-thru cache of hash table
  DX_THOR_CACHE_READWRITE      complete cache of hash table
  DX_THOR_CACHE_WRITETHRU_ALL  write-thru cache of everything
  DX_THOR_CACHE_READWRITE_ALL  complete cache of everything
Note that the server is free to silently ignore any and all caching requests, depending on the version and implementation of the server.

Return Value

Returns the success (TRUE) or failure (FALSE) of the operation.

Related Topics

dt_thor_cachecontrol(3) dt_thor_cachesync(3) dt_hold(3)