sig
class type cache_config =
object
method directory : string
method max_size : int64
method rpc_program_number : int32
method save_cache_period : int
method save_cache_speed : int
end
type cache_instance
val create : Cache_server.cache_config -> Cache_server.cache_instance
val bind : Rpc_server.t -> Cache_server.cache_instance -> unit
val activate :
Unixqueue.event_system -> Cache_server.cache_instance -> unit
val save : Cache_server.cache_instance -> unit
val verify : log:(string -> unit) -> Cache_server.cache_instance -> unit
type full_key = { key : Cache_client.key; modulo : int; }
val set_directly :
Cache_server.cache_instance ->
Cache_server.full_key ->
string ->
Cache_client.timestamp ->
Cache_client.set_options -> [ `Not_stored | `Stored ]
val get_directly :
Cache_server.cache_instance ->
Cache_server.full_key ->
Cache_client.get_options -> [ `Found of Cache_client.entry | `Not_found ]
val delete_directly :
Cache_server.cache_instance ->
Cache_server.full_key ->
Cache_client.timestamp -> Cache_client.delete_options -> unit
val clear_directly : Cache_server.cache_instance -> unit
val get_config : Cache_server.cache_instance -> Cache_client.config
val set_config : Cache_server.cache_instance -> Cache_client.config -> unit
val get_stats : Cache_server.cache_instance -> Cache_client.stats
val clear_counters : Cache_server.cache_instance -> unit
val shutdown : Cache_server.cache_instance -> unit
end