plugin install
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Gravity_Forms\Gravity_Forms\Transients;
|
||||
|
||||
class GF_WP_Transient_Strategy implements GF_Transient_Strategy {
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function get( $key ) {
|
||||
return get_transient( $key );
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
* @param $value
|
||||
* @param $timeout
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function set( $key, $value, $timeout ) {
|
||||
return set_transient( $key, $value, $timeout );
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function delete( $key ) {
|
||||
return delete_transient( $key );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Gravity_Forms\Gravity_Forms\Transients;
|
||||
|
||||
interface GF_Transient_Strategy {
|
||||
|
||||
public function get( $key );
|
||||
|
||||
public function set( $key, $value, $timeout );
|
||||
|
||||
public function delete( $key );
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user