|  |  |  | libsocialweb Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
void sw_cache_save (SwService *service,const gchar *query,GHashTable *params,SwSet *set); SwSet * sw_cache_load (SwService *service,const gchar *query,GHashTable *params,SwSet* (*set_constr) ()); void sw_cache_drop (SwService *service,const gchar *query,GHashTable *params); void sw_cache_drop_all (SwService *service);
void sw_cache_save (SwService *service,const gchar *query,GHashTable *params,SwSet *set);
Cache the items in set to disk.
| 
 | The service the item set is for | 
| 
 | The query that this cache represents | 
| 
 | A set of parameters (strings) that can be used by the service to differentiate between different service functionality | 
| 
 | The set of items to cache | 
SwSet * sw_cache_load (SwService *service,const gchar *query,GHashTable *params,SwSet* (*set_constr) ());
Load the cache for service from disk, returning a SwSet if there was a
cache.
| 
 | The service to read the cache for | 
| 
 | The query for this cache | 
| 
 | A set of parameters (strings) that can be used by the service to differentiate between different service functionality | 
void sw_cache_drop (SwService *service,const gchar *query,GHashTable *params);
Free the cache for service from disk.
| 
 | The service to read the cache for | 
| 
 | The query for this cache | 
| 
 | A set of parameters (strings) that can be used by the service to differentiate between different service functionality |