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
Copy file name to clipboardExpand all lines: README.md
+60-59Lines changed: 60 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ This repo has a tool that help you to manage and write down what you learned in
13
13
| Table of Contents |:point_down:|
14
14
| -------- | -------- |
15
15
|:new:**Top 5 recent learning**||
16
+
|[Cache storage utils using redis server](php/cache-storage-utils-using-redis-server.md)[php]| 2023-10-08 |
16
17
|[Getting database from data range to array of enum objects](apps-script/getting-database-from-data-range-to-array-of-enum-objects.md)[apps-script]| 2023-09-03 |
17
18
|[JS DOM event deepdive using SvelteJS demo](js/js-dom-event-deepdive-using-sveltejs-demo.md)[js]| 2023-09-01 |
18
19
|[ES6 Module import in client browsers](js/es6-module-import-in-client-browsers.md)[js]| 2023-08-29 |
19
20
|[SvelteJS : Reactivity via variable assignment](svelte/reactivity-via-assignment-variable.md)[svelte]| 2023-08-28 |
20
-
|[Array group by function in JS](js/array-group-by-function-in-js.md)[js]| 2023-08-25 |
21
21
|:books:**ansible**[ 1 articles ]||
22
22
| 1. [Run shell command in all hosts](ansible/Run-shell-command-in-all-hosts.md)| 2019-02-18 |
23
23
|:books:**apps-script**[ 1 articles ]||
@@ -119,7 +119,7 @@ This repo has a tool that help you to manage and write down what you learned in
|109. [Using BSD find util to find and exec command on file and folder](sysadmin/Using-BSD-find-util-to-find-and-exec-command-on-file-and-folder.md)| 2017-05-22 |
|110. [Using BSD find util to find and exec command on file and folder](sysadmin/Using-BSD-find-util-to-find-and-exec-command-on-file-and-folder.md)| 2017-05-22 |
|125. [Using netcat as tiny TCP debug tool](sysadmin/using-netcat-as-tiny-tcp-debug-tool.md)| 2017-10-07 |
176
+
|126. [Getting your external IP](sysadmin/Getting-your-external-IP.md)| 2017-11-24 |
177
+
|127. [Use journalctl to check system logs](sysadmin/Use-journalctl-to-check-system-logs.md)| 2018-01-22 |
178
+
|128. [Prevent source hacking from .git directory exposing](sysadmin/prevent-source-hacking-from-.git-directory-exposing.md)| 2018-03-01 |
179
+
|129. [Cut file content from line to line](sysadmin/Cut-file-content-from-line-to-line.md)| 2018-03-25 |
180
+
|130. [Prepend line number to file](sysadmin/Prepend-line-number-to-file.md)| 2018-03-25 |
181
+
|131. [Create a sequence of numbers](sysadmin/Create-a-sequence-of-numbers.md)| 2018-03-25 |
182
+
|132. [Send a file through networking via netcat](sysadmin/Send-a-file-through-networking-via-netcat.md)| 2018-04-10 |
183
+
|133. [Create tiny chat channel via netcat](sysadmin/Create-tiny-chat-channel-via-netcat.md)| 2018-04-10 |
184
+
|134. [View DNS history of a domain](sysadmin/View-DNS-history-of-a-domain.md)| 2018-05-08 |
185
+
|135. [Curl override Name Resolution with specific IP address](sysadmin/Curl-override-Name-Resolution-with-specific-IP-address.md)| 2018-08-18 |
185
186
|:books:**tools**[ 2 articles ]||
186
-
|135. [Base 64 encode and decode builtin tool](tools/base-64-encode-and-decode-builtin-tool.md)| 2017-04-21 |
187
-
|136. [Zip compressing list of files](tools/zip-compressing-list-of-files.md)| 2017-09-25 |
187
+
|136. [Base 64 encode and decode builtin tool](tools/base-64-encode-and-decode-builtin-tool.md)| 2017-04-21 |
188
+
|137. [Zip compressing list of files](tools/zip-compressing-list-of-files.md)| 2017-09-25 |
188
189
|:books:**varnish**[ 1 articles ]||
189
-
|137. [Check vcl file syntax before restarting](varnish/Check-vcl-file-syntax-before-restarting.md)| 2018-01-31 |
190
+
|138. [Check vcl file syntax before restarting](varnish/Check-vcl-file-syntax-before-restarting.md)| 2018-01-31 |
190
191
|:books:**vim**[ 2 articles ]||
191
-
|138. [Using mark to bookmark checkpoints in files](vim/Using-mark-to-bookmark-checkpoints-in-files.md)| 2018-01-30 |
192
-
|139. [Convert tabs to spaces](vim/Convert-tabs-to-spaces.md)| 2018-02-21 |
192
+
|139. [Using mark to bookmark checkpoints in files](vim/Using-mark-to-bookmark-checkpoints-in-files.md)| 2018-01-30 |
193
+
|140. [Convert tabs to spaces](vim/Convert-tabs-to-spaces.md)| 2018-02-21 |
193
194
|:books:**web**[ 7 articles ]||
194
-
|140. [Cloudflare Error 522 Connection Time out](web/Cloudflare-Error-522-Connection-Time-out.md)| 2017-05-18 |
195
-
|141. [Ping Google to crawl updated content](web/ping-google-to-crawl-updated-content.md)| 2017-08-08 |
196
-
|142. [Using web proxy to bypass firewalls](web/Using-web-proxy-to-bypass-firewalls.md)| 2017-12-07 |
197
-
|143. [HSTS rule in browser](web/HSTS-rule-in-browser.md)| 2018-01-03 |
198
-
|144. [Bypass CORS by using JSONP callback](web/Bypass-CORS-by-using-JSONP-callback.md)| 2018-01-08 |
199
-
|145. [Sending Cookie in AJAX CORs request](web/sending-cookie-in-ajax-cors-request.md)| 2018-03-01 |
200
-
|146. [Can not get real IP address from Load Balancer SSL Passthrough](web/Can-not-get-real-IP-address-from-Load-Balancer-SSL-Passthrough.md)| 2019-03-14 |
195
+
|141. [Cloudflare Error 522 Connection Time out](web/Cloudflare-Error-522-Connection-Time-out.md)| 2017-05-18 |
196
+
|142. [Ping Google to crawl updated content](web/ping-google-to-crawl-updated-content.md)| 2017-08-08 |
197
+
|143. [Using web proxy to bypass firewalls](web/Using-web-proxy-to-bypass-firewalls.md)| 2017-12-07 |
198
+
|144. [HSTS rule in browser](web/HSTS-rule-in-browser.md)| 2018-01-03 |
199
+
|145. [Bypass CORS by using JSONP callback](web/Bypass-CORS-by-using-JSONP-callback.md)| 2018-01-08 |
200
+
|146. [Sending Cookie in AJAX CORs request](web/sending-cookie-in-ajax-cors-request.md)| 2018-03-01 |
201
+
|147. [Can not get real IP address from Load Balancer SSL Passthrough](web/Can-not-get-real-IP-address-from-Load-Balancer-SSL-Passthrough.md)| 2019-03-14 |
I created a small util Cache storage using redis server to cache seriable data, it stores **serialzied data string** in text then **unserialize** to wake the data up.
7
+
8
+
```php
9
+
<?php
10
+
11
+
namespace App\Library;
12
+
13
+
use Predis\Client;
14
+
use Predis\PredisException;
15
+
16
+
class CacheStorage
17
+
{
18
+
public function __construct(private Client $redis)
0 commit comments