Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Cache\Backend\Redis::save #12502

Merged
merged 1 commit into from
Dec 24, 2016
Merged

Fixed Cache\Backend\Redis::save #12502

merged 1 commit into from
Dec 24, 2016

Conversation

sergeyklay
Copy link
Contributor

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines?
  • I have checked that another pull request for this purpose does not exist.
  • I wrote some tests for this PR.

Fixed Phalcon\Cache\Backend\Redis::save to allow save data termlessly:

// Set expiration to 10 second
$cache->save("my-key", $data, 10);

// Save data termlessly
$cache->save("my-key", $data, -1);

// Save data termlessly
$cache->save("my-key", $data, -1789789789);

// Save data termlessly
$cache->save("my-key", $data, 0);

@sergeyklay sergeyklay merged commit 39e894c into phalcon:3.0.x Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant