diff --git a/src/server.c b/src/server.c index 4d6f9f1ab..362df2bd0 100644 --- a/src/server.c +++ b/src/server.c @@ -299,8 +299,6 @@ struct redisCommand redisCommandTable[] = { {"latency",latencyCommand,-2,"aslt",0,NULL,0,0,0,0,0} }; -struct evictionPoolEntry *evictionPoolAlloc(void); - /*============================ Utility functions ============================ */ /* Low level logging. To use only for very big messages, otherwise diff --git a/src/server.h b/src/server.h index a238f41e8..4faa9de72 100644 --- a/src/server.h +++ b/src/server.h @@ -1616,6 +1616,9 @@ void disconnectAllBlockedClients(void); /* expire.c -- Handling of expired keys */ void activeExpireCycle(int type); +/* evict.c -- maxmemory handling and LRU eviction. */ +struct evictionPoolEntry *evictionPoolAlloc(void); + /* Git SHA1 */ char *redisGitSHA1(void); char *redisGitDirty(void);