From 71103c80dcce4e8557178efbebd9ba9b7221d4b6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 18 May 2017 14:26:46 +0100 Subject: [Minor] Allow 'expire' alias for 'expiry' --- src/libstat/backends/redis_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstat/backends') diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index d520036b1..7f76eb831 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -1208,7 +1208,7 @@ rspamd_redis_try_ucl (struct redis_stat_ctx *backend, backend->new_schema = FALSE; } - elt = ucl_object_lookup (obj, "expiry"); + elt = ucl_object_lookup_any (obj, "expiry", "expire", NULL); if (elt) { backend->expiry = ucl_object_toint (elt); } -- cgit v1.2.3