diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 17:37:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 17:37:53 +0000 |
commit | cdf89b1d3b599cdc1716403dcc93f0ca4f06a247 (patch) | |
tree | 1bda580c4adfc748907cfc47f618fab38f76e86c /src/libserver/task.h | |
parent | 45e84668a1c7a7131db53e2b94375cfc98d68556 (diff) | |
download | rspamd-cdf89b1d3b599cdc1716403dcc93f0ca4f06a247.tar.gz rspamd-cdf89b1d3b599cdc1716403dcc93f0ca4f06a247.zip |
Fix code for the new cache
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h index 21d885b25..2047d701c 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -239,26 +239,6 @@ gboolean rspamd_task_add_recipient (struct rspamd_task *task, const gchar *rcpt) */ gboolean rspamd_task_add_sender (struct rspamd_task *task, const gchar *sender); -#define RSPAMD_TASK_CACHE_NO_VALUE ((guint)-1) - -/** - * Add or replace the value to the task cache of regular expressions results - * @param task task object - * @param re text value of regexp - * @param value value to add - * @return previous value of element or RSPAMD_TASK_CACHE_NO_VALUE - */ -guint rspamd_task_re_cache_add (struct rspamd_task *task, const gchar *re, - guint value); - -/** - * Check for cached result of re inside cache - * @param task task object - * @param re text value of regexp - * @return the current value of element or RSPAMD_TASK_CACHE_NO_VALUE - */ -guint rspamd_task_re_cache_check (struct rspamd_task *task, const gchar *re); - /** * Learn specified statfile with message in a task * @param task worker's task object |