plugin install

This commit is contained in:
Tony Volpe
2024-06-18 17:29:05 -04:00
parent e1aaedd1ae
commit 41f50eacc4
5880 changed files with 1057631 additions and 39681 deletions

View File

@@ -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 );
}
}

View File

@@ -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 );
}