You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*This project is a Golang library that can be used by Golang projects. You can use it by running `go get github.com/jerbe/jcache/v2`.
15
+
*This project is a lightweight multi-level cache integration solution inspired by Redis.
16
+
*It can run multiple drivers simultaneously without interference.
17
+
*Supports the Redis driver or custom drivers, as long as they implement the `driver.Cache`interface.
18
+
*Built-in memory cache driver.
19
+
*The memory driver supports distribution, based on ETCD service discovery and election strategy. It selects one instance as the master node, and the rest as slave nodes. Every operation on the master node is synchronized to the other slave nodes via a `gRPC` interface, and write operations on slave nodes are first sent to the master node via `gRPC` and then synchronized to the other slave nodes to achieve high availability and data consistency.
20
20
21
21
22
-
## 基本架构
23
22
24
-
现行阶段优先实现功能,未来可能会根据driver的权重指定优先获取顺序。
25
-
当前版本的优先顺序按实例化client时指定的driver顺序。
23
+
## Basic Architecture
24
+
25
+
At the current stage, functionality is prioritized, and in the future, the priority retrieval order may be specified based on the driver's weight. The current version's priority order is determined by the driver order specified when instantiating the client.
26
26
```go
27
-
//实例化一个以redis驱动为优先获取,内存驱动为后取的客户端
27
+
//Instantiate a client with Redis as the preferred driver and memory driver as the fallback.
0 commit comments