diff --git a/base/Resources/redis/LICENSE b/base/Resources/redis/LICENSE new file mode 100644 index 0000000..b1e9cb6 --- /dev/null +++ b/base/Resources/redis/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022,2023 zkteco-home + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/base/Resources/redis/README.md b/base/Resources/redis/README.md new file mode 100644 index 0000000..f3ac5cd --- /dev/null +++ b/base/Resources/redis/README.md @@ -0,0 +1,186 @@ + +# This is an unofficial version of Redis for Windows X64 + +## Warning: + +# it will be regarded as illegal use If you don't like(click star). + +If you want to get latest version or [report any issues],please contact (michael_zkteco@126.com), thanks in advance! + + +It includes several new user-facing features, significant performance +optimizations, and many other improvements. It also includes changes that +potentially break backwards compatibility with older versions. We urge users to +review the release notes carefully before upgrading. + +In particular, users should be aware of the following changes: + +1. It stores AOF as multiple files in a folder; see Multi-Part AOF below. + (automatically migrated an old-style AOF file (appendonly.aof) into the AOF directory (appendonlydir)) + +2. It uses a new version 10 format for RDB files, which is incompatible + with older versions. + +3. It converts ziplist encoded keys to listpacks on the fly when loading + an older RDB format. Conversion applies to loading a file from disk or + replicating from a Redis master and will slightly increase loading time. + +Here is a comprehensive list of changes in this release compared to 6.2.6. +https://github.com/redis/redis/releases/tag/7.0-rc1 + + + +If you want to know more, this is a list of selected starting points: + +Redis 7.0 release Notes . https://github.com/redis/redis/releases/tag/7.0-rc1 + +Introduction to Redis data types. https://redis.io/topics/data-types-intro + +Try Redis directly inside your browser. https://try.redis.io + +The full list of Redis commands. https://redis.io/commands + +There is much more inside the official Redis documentation. https://redis.io/documentation + +## DISCLAIMER + +This release is based on [Redis](https://github.com/redis/redis). It has passed all the standard tests. + +Due to the many functional differences between windows and linux,There are still unknown issues/bugs, in particular there is a bug to work properly in certain scenarios. +If you download and install it, you accept the following agreement by default: + +NO LIABILITY FOR DAMAGES + +In no event shall the author of this Software be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the Author of this Software has been advised of the possibility of such damages. + + +## Building from source code on Windows + + - Redis binaries are built with the original source [Redis](https://github.com/redis/redis) and have been compiled with Visual Studio 2022 to obtain higher performance and better stability than the binaries built by Cygwin, MSYS, or even WSL2. + + - Redis can be installed as a Windows Service. + +## Supported Windows Versions + +- Windows Server 2008/2012/2016/2019/2022 x64 +- Windows 7/10/11 x64 + + + +## Default configrations + + save "" + maxmemory 256mb + appendonly no + maxmemory-policy allkeys-lru + +- if you want to modify parameters,it is recommanded you edit the redis.conf file + +## Support latest RedisJson + + edit redis.conf and add the following parameters: + + enable-module-command yes + loadmodule rejson.dll + + ReJson.dll download: + https://github.com/zkteco-home/RedisJson + +## Running Redis as a Service + +- Self elevation of the Redis executable so that service commands would work from a non-elevated command prompt. + +- Service naming so that multiple instances of the Redis service could be installed on one machine. + +- Automatically adjusting folder permissions so that when Redis is run under the NETWORK SERVICE account it could modify the files in the installation directory. + + + +### Run install_redis.cmd as Administrator (recommanded) + +you also can use the following command and manage redis service: + + +Installing the Service +------------------------ + +*--service-install* + +This must be the first argument on the redis-server command line. Arguments after this are passed in the order they occur to Redis when the service is launched. The service will be configured as Autostart and will be launched as "NT AUTHORITY\\NetworkService". Upon successful installation a success message will be displayed and Redis will exit. + +This command does not start the service. + +For instance: + +redis-server --service-install redis.conf --loglevel verbose + +Uninstalling the Service +------------------------ + +*--service-uninstall* + +This will remove the Redis service configuration information from the registry. Upon successful uninstallation a success message will be displayed and Redis will exit. + +This does command not stop the service. + +For instance: + +redis-server --service-uninstall + +Starting the Service +-------------------- + +*--service-start* + +This will start the Redis service. Upon successful start, a success message will be displayed and Redis will begin running. + +For instance: + +redis-server --service-start + +Stopping the Service +-------------------- + +*--service-stop* + +This will stop the Redis service. Upon successful termination a success message will be displayed and Redis will exit. + +For instance: + +redis-server --service-stop + +Naming the Service +------------------ + +*--service-name **name*** + +This optional argument may be used with any of the preceding commands to set the name of the installed service. This argument should follow the service-install, service-start, service-stop or service-uninstall commands, and precede any arguments to be passed to Redis via the service-install command. + +The following would install and start three separate instances of Redis as a service: + +redis-server --service-install --service-name redisService1 redis.conf + +redis-server --service-start --service-name redisService1 + +The following would stop and uninstall three separate instances of Redis as a service: + +redis-server --service-stop --service-name redisService1 + +redis-server --service-uninstall --service-name redisService1 + + +Sentinel for Redis Server on Windows +------------------------------------ + + +After you have edited and created the necessary configuration files,you must open the necessary firewall port. you can install Redis Sentinel from the command prompt as follows: + + +redis-server --service-install --service-name Sentinel sentinel.conf --sentinel + +## Contribute + + + + + diff --git a/base/Resources/redis/RELEASENOTES b/base/Resources/redis/RELEASENOTES new file mode 100644 index 0000000..3873dde --- /dev/null +++ b/base/Resources/redis/RELEASENOTES @@ -0,0 +1,366 @@ +================================================================================ +Redis 7.0 Released May 04 12:00:00 IST 2022 +================================================================================ + + +Upgrade urgency LOW: This is the first Release Candidate of Redis 7.0. + +Redis Release Candidate (RC) versions are early versions that are made available +for early adopters in the community to test them. We do not consider +them suitable for production environments. + +Introduction to the Redis 7.0 release +===================================== + +Redis 7.0 includes several new user-facing features, significant performance +optimizations, and many other improvements. It also includes changes that +potentially break backwards compatibility with older versions. We urge users to +review the release notes carefully before upgrading. + +In particular, users should be aware of the following changes: + +1. Redis 7 stores AOF as multiple files in a folder; see Multi-Part AOF below. +2. Redis 7 uses a new version 10 format for RDB files, which is incompatible + with older versions. +3. Redis 7 converts ziplist encoded keys to listpacks on the fly when loading + an older RDB format. Conversion applies to loading a file from disk or + replicating from a Redis master and will slightly increase loading time. +4. See sections about breaking changes mentioned below. + +Here is a comprehensive list of changes in this release compared to 6.2.6. +Each one includes the PR number that added it so that you can get more details +at https://github.com/redis/redis/pull/ + +New Features +============ + +* Redis Functions: A new way to extend Redis with server-side scripts (#8693) + see https://redis.io/topics/functions-intro +* ACL: Fine-grained key-based permissions and allow users to support multiple + sets of command rules with selectors (#9974) + see https://redis.io/topics/acl#key-permissions and https://redis.io/topics/acl#selectors. +* Cluster: Sharded (node-specific) Pub/Sub support (#8621) + see https://redis.io/topics/pubsub#sharded-pubsub +* First-class handling of sub-commands in most contexts (affecting ACL + categories, INFO commandstats, etc.) (#9504, #10147) +* Command metadata and documentation (#10104) + see https://redis.io/commands/command-docs, https://redis.io/topics/command-tips +* Command key-specs. A better way for clients to locate key arguments and their + read/write purpose (#8324, #10122, #10167) + see https://redis.io/topics/key-specs +* Multi-Part AOF mechanism to avoid AOF rewrite overheads (#9788) +* Cluster: Support for hostnames, instead of IP addresses only (#9530) +* Improved management of memory consumed by network buffers, and an option to + drop clients when total memory exceeds a limit (#8687) +* Cluster: A mechanism for disconnecting cluster bus connections to prevent + uncontrolled buffer growth (#9774) +* AOF: Timestamp annotations and support for point-in-time recovery (#9326) +* Lua: support Function flags in EVAL scripts (#10126) + see https://redis.io/topics/eval-intro#eval-flags +* Lua: Support RESP3 reply for Verbatim and Big-Number types (#9202) +* Lua: Get Redis version via redis.REDIS_VERSION, redis.REDIS_VERSION_NUM (#10066) + +New user commands or command arguments +-------------------------------------- + +* ZMPOP, BZMPOP commands (#9484) +* LMPOP, BLMPOP commands (#9373) +* SINTERCARD, ZINTERCARD commands (#8946, #9425) +* SPUBLISH, SSUBSCRIBE, SUNSUBSCRIBE, PUBSUB SHARDCHANNELS/SHARDNUMSUB (#8621) +* EXPIRETIME and PEXPIRETIME commands (#8474) +* EXPIRE command group supports NX/XX/GT/LT options (#2795) +* SET command supports combining NX and GET flags (#8906) +* BITPOS, BITCOUNT accepts BIT index (#9324) +* EVAL_RO, EVALSHA_RO command variants, to run on read-only replicas (#8820) +* SORT_RO command, to run on read-only replicas (#9299) +* SHUTDOWN arguments: NOW, FORCE, ABORT (#9872) +* FUNCTION *, FCALL, FCALL_RO - https://redis.io/commands/function-load +* CONFIG SET/GET can handle multiple configs atomically, in one call (#9748, #9914) +* QUIT promoted to be a proper command, HOST: and POST demoted (#9798) +* XADD supports auto sequence number via -* (#9217) + +New administrative and introspection commands and command arguments +------------------------------------------------------------------- + +* COMMAND DOCS (#9656, #10056, #10104) +* COMMAND LIST (#9504) +* COMMAND INFO accepts sub-commands as args, and no args too (#9504, #10056) +* LATENCY HISTOGRAM (#9462) +* CLUSTER LINKS (#9774) +* CLUSTER DELSLOTSRANGE and CLUSTER ADDSLOTSRANGE (#9445) +* CLIENT NO-EVICT (#8687) +* ACL DRYRUN (#9974) +* SLOWLOG GET supports passing in -1 to get all entries (#9018) + +Command replies that have been extended +--------------------------------------- + +* COMMAND and COMMAND INFO extended with tips, key-specs and sub-commands + see https://redis.io/commands/command +* ACL CAT, COMMAND LIST list sub-commands (#10127) +* MODULE LIST reply includes path and args (#4848) +* OBJECT ENCODING returns listpack instead of ziplist (#8887, #9366) +* CLUSTER SLOTS hostname support (#9530) +* COMMAND command: Added the `blocking` and `module` flags (#10104, #9656) + + +Potentially Breaking Changes +============================ + +* Modifying the bind parameter to a non-default value will no longer implicitly + disable protected-mode (#9034) +* Remove EVAL script verbatim replication, propagation, and deterministic + execution logic (#9812) + This has been deprecated and off by default since Redis 6 and is no longer + supported. +* ACL: pub/sub channels are blocked by default (acl-pubsub-default=resetchannels) (#10181) +* SCRIPT LOAD and SCRIPT FLUSH are no longer propagated to replicas / AOF (#9812) +* ACL: Declarations of duplicate ACL users in startup files and command line + arguments will result in an error, whereas previously the last declaration + would overwrite the others. (#9330) +* Replication: TTLs are always replicated as absolute (not relative) millisecond + timestamps (#8474) +* Fixes in handling multi-key commands with expired keys on writable replicas (#9572) +* CONFIG SET maxmemory returns before starting eviction (#10019) +* AOF: The new Multi-Part mechanism stores data as a set of multiple files in a + designated folder (#9788) +* Remove STRALGO command, preserve LCS a standalone command which only works on + keys (#9799) +* Remove gopher protocol support (#9057) +* MODULE and DEBUG commands disabled (protected) by default, for better security (#9920) +* Snapshot-creating and other admin commands in MULTI/EXEC transactions are now + rejected (#10015) +* PING is now rejected with -MASTERDOWN when replica-serve-stale-data=no (#9757) +* ACL GETUSER reply now uses ACL syntax for `keys` and `channels` (#9974) +* COMMAND reply drops `random` and `sort-for-scripts` flags, which are now part + of command tips (#10104) +* LPOP/RPOP with count against non-existing list return null array (#10095) +* INFO commandstats now shows the stats per sub-command (#9504) +* ZPOPMIN/ZPOPMAX used to produce wrong replies when count is 0 with non-zset (#9711) +* LPOP/RPOP used to produce wrong replies when count is 0 (#9692) +* CONFIG GET bind now returns the current value in effect, even if the implicit + default is in use (#9034) +* CONFIG REWRITE now rewrites the list of modules to load (#4848) +* Config: repl-diskless-sync is now set to yes by default (#10092) +* When shutting down, Redis can optionally wait for replicas to catch up on the + replication link (#9872) +* Most CONFIG SET, REWRITE, RESETSTAT commands are now allowed during loading (#9878) +* READONLY and READWRITE commands are now allowed when loading and on stale + replicas (#7425) +* Fix ACL category for SELECT, WAIT, ROLE, LASTSAVE, READONLY, READWRITE, ASKING (#9208) +* RESET is now allowed even when on unauthenticated connections (#9798) +* SCRIPT LOAD is now allowed on stale replicas (#10126) + + +Security improvements +===================== + +* Sensitive configs and commands blocked (protected) by default (#9920) +* Improve bind and protected-mode config handling (#9034) +* Sentinel: avoid logging auth-pass value (#9652) +* redis-cli: sensitive commands bypass the history file (#8895) + + +Performance and resource utilization improvements +================================================= + +* Significant memory saving and latency improvements in cluster mode (#9356) +* Significant memory savings in case of many hash or zset keys (#9228) +* Replication backlog and replicas use one global shared replication buffer (#9166) +* Significant reduction of copy-on-write memory overheads (#8974) +* Free unused capacity in the cluster send buffer (#9255) +* Memory efficiency, make full use of client struct memory for reply buffers (#8968) +* Replace ziplist with listpack in Hash, List, Zset (#8887, #9366, #9740) +* Add support for list type to store elements larger than 4GB (#9357) +* Reuse temporary client objects for blocked clients by module (#9940) +* Remove command argument count limit, dynamically grow argv buffer (#9528) +* Optimize list type operations to seek from the nearest end (#9454) +* Improvements in fsync to avoid large writes to disk (#9409) +* BITSET and BITFIELD SET only propagated when the value actually changed (#9403) +* Improve latency when a client is unblocked by module timer (#9593) + + +Other General Improvements +========================== + +* Make partial sync possible after master reboot (#8015) +* Always create a base AOF file when redis starts from empty (#10102) +* Replica keep serving data during repl-diskless-load=swapdb for better + availability (#9323) + + +Changes in CLI tools +==================== +* redis-cli --json, and -2 options (#9954) +* redis-cli --scan, add sleep interval option (#3751) +* redis-cli --replica optimization, skip RDB generation (#10044) +* redis-cli --functions-rdb, generate RDB with Functions only (#9968) +* redis-cli -X, take an arbitrary arg from stdin, extend --cluster call take -x (#9980) +* redis-benchmark -x takes an argument from stdin (#9130) +* redis-benchmark, Added URI support (#9314) +* redis-cli monitor and pubsub can be aborted with Ctrl+C, keeping the cli alive (#9347) + + +Platform / toolchain support related improvements +================================================= + +* Upgrade jemalloc 5.2.1 (#9623) +* Fix RSS metrics on NetBSD and OpenBSD (#10116, #10149) +* Check somaxconn system settings on macOS, FreeBSD and OpenBSD (#9972) +* Better fsync on MacOS, improve power failure safety (#9545) + + +New configuration options +========================= + +* CONFIG SET/GET can handle multiple configs in one call (#9748, #9914) +* Support glob pattern matching for config include files (#8980) +* appenddirname, folder where multi-part AOF files are stored (#9788) +* shutdown-timeout, default 10 seconds (#9872) +* maxmemory-clients, allows limiting the total memory usage by all clients (#8687) +* cluster-port, can control the bind port of cluster bus (#9389) +* bind-source-addr, configuration argument control IP of outgoing connections (#9142) +* busy-reply-threshold, alias for the old lua-time-limit (#9963) +* repl-diskless-sync-max-replicas, allows faster replication in some cases (#10092) +* latency-tracking, enabled by default, and latency-tracking-info-percentiles (#9462) +* cluster-announce-hostnameand cluster-preferred-endpoint-type (#9530) +* cluster-allow-pubsublocal-when-down (#8621) +* cluster-link-sendbuf-limit (#9774) +* list-max-listpack-*, hash-max-listpack-*, zset-max-listpack-* as aliases for + the old ziplist configs (#8887, #9366, #9740) + + +INFO fields and introspection changes +===================================== + +* INFO: latencystats section (#9462) +* INFO: total_active_defrag_time and current_active_defrag_time (#9377) +* INFO: total_eviction_exceeded_time and current_eviction_exceeded_time (#9031) +* INFO: evicted_clients (#8687) +* INFO: mem_cluster_links, total_cluster_links_buffer_limit_exceeded (#9774) +* INFO: current_cow_peak (#8974) +* INFO: Remove aof_rewrite_buffer_length (#9788) +* MEMORY STATS: Report slot to keys map size in in cluster mode (#10017) +* INFO MEMORY: changes to separate memory usage of Functions and EVAL (#9780) +* INFO MEMORY: Add mem_total_replication_buffers, change meaning of + mem_clients_slaves (#9166) +* CLIENT LIST: tot-mem, multi-mem (#8687) +* CLIENT LIST, INFO: Show RESP version (#9508) +* SENTINEL INFO: tilt_mode_since (#9000) +* LATENCY: Track module-acquire-GIL latency (#9608) + + +Module API changes +================== + +* Add API for replying with RESP3 types (#8521, #9639, #9632) +* Add API for parsing RESP3 replies from RM_Call (#9202) +* Add RM_Call '0' and '3' flags to control RESP version to be used (#9202) +* Add Support for validating ACL explicitly (#9309, #9974) +* Add missing list type functionality APIs (#8439) +* Add API for yielding to Redis events during long busy jobs (#9963) +* Add API for registering other file descriptors to the Redis event loop (#10001) +* Enhance mem_usage/free_effort/unlink/copy and IO callbacks to have key name + and DB index (#8999) +* Enhance mem_usage callback to get the requested sample size (#9612) +* RM_GetContextFlags: CTX_FLAGS_ASYNC_LOADING, CTX_FLAGS_RESP3 (#9323, #9202) +* Mark APIs as non-experimental (#9983) +* RM_CreateSubcommand (#9504) +* RM_KeyExists (#9600) +* RM_TrimStringAllocation (#9540) +* RM_LoadDataTypeFromStringEncver (#9537) +* RM_MonotonicMicroseconds (#10101) +* Add ReplAsyncLoad event and deprecate the ReplBackup event (#9323) +* Add RM_SetModuleOptions OPTIONS_HANDLE_REPL_ASYNC_LOAD flag (#9323) + + +Bug Fixes +========= + +* Fix COMMAND GETKEYS on EVAL without keys (#9733) +* Improve MEMORY USAGE with allocator overheads (#9095) +* Unpause clients after manual failover ends instead of waiting for timed (#9676) +* Lua: fix crash on a script call with many arguments, a regression in v6.2.6 (#9809) +* Lua: Use all characters to calculate string hash to prevent hash collisions (#9449) +* Prevent LCS from allocating temp memory over proto-max-bulk-len (#9817) +* Tracking: Make invalidation messages always after command's reply (#9422) +* Cluster: Hide empty replicas from CLUSTER SLOTS responses (#9287) +* CLIENT KILL killed all clients when used with ID of 0 (#9853) +* Fix bugs around lists with list-compress-depth (#9849, #9779) +* Fix one in a blue moon LRU bug in RESTORE, RDB loading, and module API (#9279) +* Reset lazyfreed_objects info field with RESETSTAT, test for stream lazyfree (#8934) +* Fix RDB and list node compression for handling values larger than 4GB (#9776) +* Fix a crash when adding elements larger than 2GB to a Set or Hash (#9916) +* Diskless replication could not count as a change and skip next database SAVE (#9323) +* Fix excessive stream trimming due to an overflow (#10068) +* Safe and organized exit when receiving SIGTERM while loading (#10003) +* Improve EXPIRE TTL overflow detection (#9839) +* Add missed error counting for INFO errorstats (#9646) +* DECRBY LLONG_MIN caused negation overflow (#9577) +* Delay discarding cached master when full synchronization (#9398) +* Fix Stream keyspace notification and persistence triggers in consumer + creation and deletion (#9263) +* Fix rank overflow in zset with more than 2B entries (#9249) +* Avoid starting in check-aof / check-rdb / sentinel modes if only the folder + name contains that name (#9215, #9176) +* create the log file only after done parsing the entire config file (#6741) +* redis-cli: Fix SCAN sleep interval for --bigkeys, --memkeys, --hotkeys (#9624) +* redis-cli: Fix prompt to show the right DB num and transaction state after + RESET (#9096) +* Module API: fix possible propagation bugs in case a module calls CONFIG SET + maxmemory outside a command (#10019, #9890) +* Module API: carry through client RESP version to module blocked clients (#9634) +* Module API: release clients blocked on module commands in cluster resharding + and down state (#9483) +* Sentinel: Fix availability after master reboot (#9438) +* Sentinel: Fix memory leak with TLS (#9753) +* Sentinel: Fix possible failover due to duplicate zero-port (#9240) +* Sentinel: Fix issues with hostname support (#10146) +* Sentinel: Fix election failures on certain container environments (#10197) + + +Known Issues +============ + +This is a list of known issues that affect this release, and are planned to be +fixed or completed before Redis 7 is officially released: + +* Module APIs for modules to provide additional command meta-data are still + missing. +* Module APIs for supporting the new ACL selectors are still missing. +* ACL key access selectors do not yet apply to SORT with GET/BY does. +* Multi-Part AOF support in redis-check-aof is still missing. + +Thanks to all the users and developers who made this release possible. +We'll follow up with more RC releases, until the code looks production ready +and we don't get reports of serious issues for a while. + +A special thank you for the amount of work put into this release by: + +- Guy Benoish +- Meir Shpilraien +- Oran Agra +- Chen Yang +- Zhu Binbin +- Yoav Steinberg +- sundb +- Madelyn Olson +- Yossi Gottlieb +- Viktor Söderqvist +- Wang Yuan +- Harkrishn Patro +- Ozan Tezcan +- Wen Hui +- Huang Zhw +- Nan Yan +- Filipe Oliveira +- Eduardo Semprebon +- Yaacov Hazan +- Itamar Haber +- Zhao Zhao +- Itay Perry +- Ning Sun +- zhugezy +- menwen +- Andy Pan + diff --git a/base/Resources/redis/install_redis.bat b/base/Resources/redis/install_redis.bat new file mode 100644 index 0000000..93d4d78 --- /dev/null +++ b/base/Resources/redis/install_redis.bat @@ -0,0 +1,16 @@ +@echo on + +:: 检查是否以管理员身份运行 +net session >nul 2>&1 +if %errorLevel% neq 0 ( + echo 请使用管理员身份运行此脚本! + pause + exit /b 1 +) + +cd /d %~dp0 +sc create redis binPath= "\"%CD%\redis-server.exe\" --service-run \"%CD%\redis.conf\"" DisplayName= "Redis" start= auto depend= TCPIP +sc description redis "Redis Cache Service" +net start redis +pause + diff --git a/base/Resources/redis/redis-benchmark.exe b/base/Resources/redis/redis-benchmark.exe new file mode 100644 index 0000000..1c8ad81 Binary files /dev/null and b/base/Resources/redis/redis-benchmark.exe differ diff --git a/base/Resources/redis/redis-check-aof.exe b/base/Resources/redis/redis-check-aof.exe new file mode 100644 index 0000000..515f813 Binary files /dev/null and b/base/Resources/redis/redis-check-aof.exe differ diff --git a/base/Resources/redis/redis-check-rdb.exe b/base/Resources/redis/redis-check-rdb.exe new file mode 100644 index 0000000..515f813 Binary files /dev/null and b/base/Resources/redis/redis-check-rdb.exe differ diff --git a/base/Resources/redis/redis-cli.exe b/base/Resources/redis/redis-cli.exe new file mode 100644 index 0000000..c76cf61 Binary files /dev/null and b/base/Resources/redis/redis-cli.exe differ diff --git a/base/Resources/redis/redis-server.exe b/base/Resources/redis/redis-server.exe new file mode 100644 index 0000000..515f813 Binary files /dev/null and b/base/Resources/redis/redis-server.exe differ diff --git a/base/Resources/redis/redis.conf b/base/Resources/redis/redis.conf new file mode 100644 index 0000000..7e1c740 --- /dev/null +++ b/base/Resources/redis/redis.conf @@ -0,0 +1,71 @@ +# Save the DB to disk. +# save [ ...] +# +# Redis will save the DB if the given number of seconds elapsed and it +# surpassed the given number of write operations against the DB. +# +# Snapshotting can be completely disabled with a single empty string argument +# as in following example: +# +# save "" +# +# Unless specified otherwise, by default Redis will save the DB: +# * After 3600 seconds (an hour) if at least 1 change was performed +# * After 300 seconds (5 minutes) if at least 100 changes were performed +# * After 60 seconds if at least 10000 changes were performed +# +# You can set these explicitly by uncommenting the following line. +# +# save 3600 1 300 100 60 10000 + +save "" +port 6379 +requirepass '' +maxmemory 256mb +appendonly no +maxmemory-policy allkeys-lru + +# Examples: +# +# bind 192.168.1.100 10.0.0.1 # listens on two specific IPv4 addresses +# bind 127.0.0.1 ::1 # listens on loopback IPv4 and IPv6 +# bind * -::* # like the default, all available interfaces +# +# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the +# internet, binding to all the interfaces is dangerous and will expose the +# instance to everybody on the internet. So by default we uncomment the +# following bind directive, that will force Redis to listen only on the +# IPv4 and IPv6 (if available) loopback interface addresses (this means Redis +# will only be able to accept client connections from the same host that it is +# running on). +# +# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES +# COMMENT OUT THE FOLLOWING LINE. +# +# You will also need to set a password unless you explicitly disable protected +# mode. +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +bind 127.0.0.1 + +# Redis supports recording timestamp annotations in the AOF to support restoring +# the data from a specific point-in-time. However, using this capability changes +# the AOF format in a way that may not be compatible with existing AOF parsers. +#aof-timestamp-enabled no + +# Since version 5 of RDB a CRC64 checksum is placed at the end of the file. +# This makes the format more resistant to corruption but there is a performance +# hit to pay (around 10%) when saving and loading RDB files, so you can disable it +# for maximum performances. +# +# RDB files created with checksum disabled have a checksum of zero that will +# tell the loading code to skip the check. + +rdbchecksum no + +# By default protected mode is enabled. You should disable it only if +# you are sure you want clients from other hosts to connect to Redis +# even if no authentication is configured. + +protected-mode yes +