diff options
Diffstat (limited to 'examples/redis-unstable/src/memory_prefetch.h')
| -rw-r--r-- | examples/redis-unstable/src/memory_prefetch.h | 26 |
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 | |||
| 18 | struct client; | ||
| 19 | |||
| 20 | void prefetchCommandsBatchInit(void); | ||
| 21 | int determinePrefetchCount(int len); | ||
| 22 | int addCommandToBatch(struct client *c); | ||
| 23 | void resetCommandsBatch(void); | ||
| 24 | void prefetchCommands(void); | ||
| 25 | |||
| 26 | #endif /* MEMORY_PREFETCH_H */ | ||
