Skip to content

Commit 4001e44

Browse files
- update copyright and readme
1 parent 09951bf commit 4001e44

13 files changed

+26
-17
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mMIT License
22

3-
Copyright (c) 2018-20 PJ Engineering and Business Solutions Pty. Ltd.
3+
Copyright (c) 2018-21 PJ Engineering and Business Solutions Pty. Ltd.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<p align="right">
2+
&nbsp;&nbsp;<strong>the project to show your appreciation.</strong> :arrow_upper_right:
3+
</p>
4+
15
<p align="right">
26
<a href="http://godoc.org/github.com/rocketlaunchr/remember-go"><img src="http://godoc.org/github.com/rocketlaunchr/remember-go?status.svg" /></a>
37
<a href="https://goreportcard.com/report/github.com/rocketlaunchr/remember-go"><img src="https://goreportcard.com/badge/github.com/rocketlaunchr/remember-go" /></a>
@@ -11,13 +15,11 @@
1115
# Cache Slow Database Queries
1216

1317
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.
1519

1620
See [Article](https://medium.com/@rocketlaunchr.cloud/caching-slow-database-queries-1085d308a0c9) for further details including a tutorial.
1721

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.
2123

2224
## Installation
2325

@@ -85,6 +87,10 @@ It relies on Brad Fitzpatrick's [memcache driver](https://godoc.org/github.com/b
8587

8688
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.
8789

90+
### Nocache
91+
92+
This driver is for testing purposes. It does not cache any data.
93+
8894
## Create a SlowRetrieve Function
8995

9096
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
132138

133139
## Other useful packages
134140

141+
- [awesome-svelte](https://github.com/rocketlaunchr/awesome-svelte) - Resources for killing react
135142
- [dataframe-go](https://github.com/rocketlaunchr/dataframe-go) - For statistics, machine-learning, and data manipulation/exploration
136143
- [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go
137144
- [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
138146
- [igo](https://github.com/rocketlaunchr/igo) - A Go transpiler with cool new syntax such as fordefer (defer for for-loops)
139147
- [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries
140148
- [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
141150

142151
#
143152

144153
### Legal Information
145154

146155
The license is a modified MIT license. Refer to `LICENSE` file for more details.
147156

148-
**© 2019-20 PJ Engineering and Business Solutions Pty. Ltd.**
157+
**© 2019-21 PJ Engineering and Business Solutions Pty. Ltd.**
149158

150159
### Final Notes
151160

key.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package remember
44

logger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package remember
44

memcached/memcached.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package memcached
44

memory/memory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package memory
44

options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package remember
44

redis/redis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package redis
44

redis/redis_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package redis_test
44

remember.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package remember
44

remember_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package remember_test
44

ristretto/ristretto.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package ristretto
44

ristretto/ristretto_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-20 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
1+
// Copyright 2018-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
22

33
package ristretto_test
44

0 commit comments

Comments
 (0)