summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/memory_prefetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/memory_prefetch.h')
-rw-r--r--examples/redis-unstable/src/memory_prefetch.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/memory_prefetch.h b/examples/redis-unstable/src/memory_prefetch.h
new file mode 100644
index 0000000..e2977f1
--- /dev/null
+++ b/examples/redis-unstable/src/memory_prefetch.h
@@ -0,0 +1,26 @@
1/*
2 * Copyright (c) 2025-Present, Redis Ltd.
3 * All rights reserved.
4 *
5 * Copyright (c) 2024-present, Valkey contributors.
6 * All rights reserved.
7 *
8 * Licensed under your choice of (a) the Redis Source Available License 2.0
9 * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
10 * GNU Affero General Public License v3 (AGPLv3).
11 *
12 * Portions of this file are available under BSD3 terms; see REDISCONTRIBUTIONS for more information.
13 */
14
15#ifndef MEMORY_PREFETCH_H
16#define MEMORY_PREFETCH_H
17
18struct client;
19
20void prefetchCommandsBatchInit(void);
21int determinePrefetchCount(int len);
22int addCommandToBatch(struct client *c);
23void resetCommandsBatch(void);
24void prefetchCommands(void);
25
26#endif /* MEMORY_PREFETCH_H */