@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * For this example `composer require league/climate` |
4 | 4 | */ |
5 | 5 | require 'vendor/autoload.php'; |
6 | -$climate = new League\CLImate\CLImate(); |
|
6 | +$climate = new League\CLImate\CLImate(); |
|
7 | 7 | $climate->backgroundBlack()->clear(); |
8 | 8 | $climate->backgroundBlack()->white()->out(''); |
9 | 9 | /* |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | $climate->backgroundBlack()->white()->out(''); |
32 | 32 | $climate->backgroundBlack()->white()->inline('Creating JsonCache instance... '); |
33 | -$jsonCache = new Infobiotech\JsonCache($filesystemAdapter, uniqid()); |
|
33 | +$jsonCache = new Infobiotech\JsonCache($filesystemAdapter, uniqid()); |
|
34 | 34 | usleep(mt_rand(150000, 800000)); |
35 | 35 | $climate->backgroundBlack()->lightGreen()->bold()->inline('done'); |
36 | 36 | $climate->backgroundBlack()->white()->out(''); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | $climate->backgroundBlack()->white()->out(''); |
41 | 41 | $climate->backgroundBlack()->white()->inline('Generating a random value... '); |
42 | -$value = uniqid(); |
|
42 | +$value = uniqid(); |
|
43 | 43 | usleep(mt_rand(150000, 800000)); |
44 | 44 | $climate->backgroundBlack()->magenta()->bold()->inline(var_export($value, true)); |
45 | 45 | /* |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | $climate->backgroundBlack()->white()->out(''); |
57 | 57 | $climate->backgroundBlack()->white()->inline('Getting the value... '); |
58 | -$checkValue = $jsonCache->get('key'); |
|
58 | +$checkValue = $jsonCache->get('key'); |
|
59 | 59 | usleep(mt_rand(150000, 800000)); |
60 | 60 | $climate->backgroundBlack()->magenta()->bold()->inline(var_export($checkValue, true)); |
61 | 61 | /* |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | $climate->backgroundBlack()->white()->out(''); |
82 | 82 | $climate->backgroundBlack()->white()->inline('Generating a random value... '); |
83 | -$ttlValue = uniqid(); |
|
83 | +$ttlValue = uniqid(); |
|
84 | 84 | usleep(mt_rand(150000, 800000)); |
85 | 85 | $climate->backgroundBlack()->magenta()->bold()->inline(var_export($ttlValue, true)); |
86 | 86 | /* |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | $climate->backgroundBlack()->white()->out(''); |
90 | 90 | $climate->backgroundBlack()->white()->inline('Generating a random TTL... '); |
91 | -$ttl = mt_rand(3, 7); |
|
91 | +$ttl = mt_rand(3, 7); |
|
92 | 92 | usleep(mt_rand(150000, 800000)); |
93 | 93 | $climate->backgroundBlack()->magenta()->bold()->inline(var_export($ttl, true)); |
94 | 94 | /* |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /* |
35 | 35 | * |
36 | 36 | */ |
37 | - const DEFAULT_TTL = 1200; |
|
37 | + const DEFAULT_TTL = 1200; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /* |
64 | 64 | * |
65 | 65 | */ |
66 | - $this->namespace = $namespace.'.json'; |
|
66 | + $this->namespace = $namespace.'.json'; |
|
67 | 67 | /* |
68 | 68 | * |
69 | 69 | */ |