Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the bulk of the implementation code
- Loading branch information
1 parent
b0925a9
commit 66915d8
Showing
3 changed files
with
147 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace TenUp\AsyncTransients; | ||
|
||
function delete_async_transient( $transient ) { | ||
return Transient::instance()->delete( $transient ); | ||
} | ||
|
||
function get_async_transient( $transient, $regenerate_function, $regenerate_params = array() ) { | ||
return Transient::instance()->get( $transient, $regenerate_function, $regenerate_params ); | ||
} | ||
|
||
function set_async_transient( $transient, $value, $expiration ) { | ||
return Transient::instance()->set( $transient, $value, $expiration ); | ||
} |