|
| 1 | +<p align="right"> |
| 2 | + ⭐ <strong>the project to show your appreciation.</strong> :arrow_upper_right: |
| 3 | +</p> |
| 4 | + |
1 | 5 | <p align="right">
|
2 | 6 | <a href="http://godoc.org/github.com/rocketlaunchr/remember-go"><img src="http://godoc.org/github.com/rocketlaunchr/remember-go?status.svg" /></a>
|
3 | 7 | <a href="https://goreportcard.com/report/github.com/rocketlaunchr/remember-go"><img src="https://goreportcard.com/badge/github.com/rocketlaunchr/remember-go" /></a>
|
|
11 | 15 | # Cache Slow Database Queries
|
12 | 16 |
|
13 | 17 | This package is used to cache the results of slow database queries in memory or Redis.
|
14 |
| -It can be used to cache any form of data. A Redis and in-memory storage driver is provided. |
| 18 | +It can be used to cache any form of data (i.e it's not limited to caching database results). A Redis and in-memory storage driver is provided. |
15 | 19 |
|
16 | 20 | See [Article](https://medium.com/@rocketlaunchr.cloud/caching-slow-database-queries-1085d308a0c9) for further details including a tutorial.
|
17 | 21 |
|
18 |
| -The package is **production ready** and the API is stable. A variant of this package has been used in production for over 3 years. |
19 |
| - |
20 |
| -⭐ **the project to show your appreciation.** |
| 22 | +The package is **production ready** and the API is stable. A variant of this package has been used in production for over 4 years. |
21 | 23 |
|
22 | 24 | ## Installation
|
23 | 25 |
|
@@ -85,6 +87,10 @@ It relies on Brad Fitzpatrick's [memcache driver](https://godoc.org/github.com/b
|
85 | 87 |
|
86 | 88 | DGraph's [Ristretto](https://github.com/dgraph-io/ristretto) is a fast, fixed size, in-memory cache with a dual focus on throughput and hit ratio performance.
|
87 | 89 |
|
| 90 | +### Nocache |
| 91 | + |
| 92 | +This driver is for testing purposes. It does not cache any data. |
| 93 | + |
88 | 94 | ## Create a SlowRetrieve Function
|
89 | 95 |
|
90 | 96 | The package initially checks if data exists in the cache. If it doesn’t, then it elegantly fetches the data directly from the database by calling the `SlowRetrieve` function. It then saves the data into the cache so that next time it doesn’t have to refetch it from the database.
|
@@ -132,20 +138,23 @@ The Redis storage driver stores the data in a `gob` encoded form. You have to re
|
132 | 138 |
|
133 | 139 | ## Other useful packages
|
134 | 140 |
|
| 141 | +- [awesome-svelte](https://github.com/rocketlaunchr/awesome-svelte) - Resources for killing react |
135 | 142 | - [dataframe-go](https://github.com/rocketlaunchr/dataframe-go) - For statistics, machine-learning, and data manipulation/exploration
|
136 | 143 | - [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go
|
137 | 144 | - [electron-alert](https://github.com/rocketlaunchr/electron-alert) - SweetAlert2 for Electron Applications
|
| 145 | +- [google-search](https://github.com/rocketlaunchr/google-search) - Scrape google search results |
138 | 146 | - [igo](https://github.com/rocketlaunchr/igo) - A Go transpiler with cool new syntax such as fordefer (defer for for-loops)
|
139 | 147 | - [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries
|
140 | 148 | - [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go
|
| 149 | +- [testing-go](https://github.com/rocketlaunchr/testing-go) - Testing framework for unit testing |
141 | 150 |
|
142 | 151 | #
|
143 | 152 |
|
144 | 153 | ### Legal Information
|
145 | 154 |
|
146 | 155 | The license is a modified MIT license. Refer to `LICENSE` file for more details.
|
147 | 156 |
|
148 |
| -**© 2019-20 PJ Engineering and Business Solutions Pty. Ltd.** |
| 157 | +**© 2019-21 PJ Engineering and Business Solutions Pty. Ltd.** |
149 | 158 |
|
150 | 159 | ### Final Notes
|
151 | 160 |
|
|
0 commit comments