2017 © Pedro Peláez
 

library remember

Remember computations you did before (file cache)

image

crodas/remember

Remember computations you did before (file cache)

  • Thursday, July 5, 2018
  • by crodas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,334 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 30 % Grown

The README.md

Remember

Easiest way to remember things across requests in PHP., (*1)

Motivation

I love generating code and I needed a way of rebuilding only if something changed., (*2)

How it works

use Remember\Remember;

$function = Remember::wrap('name', function(Array $args, Array $files) {
    // do some that is expensive
    return $result;
});

// It will calculate once and cache the result
// until __FILE__ changes.
$result = $function([__FILE__, 'foobar']);

Low level API

use Remember\Remember;

$ns = Remember::ns('foobar');
$result = $ns->get([__FILE__], $isValid);
if (!$isValid) {
    // do something
    $result = ...;
    $ns->store([__FILE__], $result);
}

The Versions

05/07 2018

dev-develop

dev-develop

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

05/07 2018

dev-master

9999999-dev

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

05/07 2018

v0.5.2

0.5.2.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

12/02 2018

v0.5.1

0.5.1.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

31/07 2017

v0.4.4

0.4.4.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

27/12 2016

v0.4.3

0.4.3.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

16/11 2016

v0.4.2

0.4.2.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

13/11 2016

v0.4.1

0.4.1.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

11/11 2016

v0.3.3

0.3.3.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

10/11 2016

v0.3.2

0.3.2.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

10/11 2016

v0.3.1

0.3.1.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

10/11 2016

v0.2.1

0.2.1.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas

03/11 2016

v0.1.1

0.1.1.0

Remember computations you did before (file cache)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cesar Rodas