コード例 #1
0
ファイル: FallbackStore.php プロジェクト: AltThree/Storage
 /**
  * Put an item into the storage.
  *
  * @param string $key
  * @param string $data
  *
  * @return void
  */
 public function put($key, $data)
 {
     $this->main->put($key, $data);
 }
コード例 #2
0
ファイル: CachingStore.php プロジェクト: AltThree/Storage
 /**
  * Put an item into the storage.
  *
  * @param string $key
  * @param string $data
  *
  * @return void
  */
 public function put($key, $data)
 {
     $this->cache->put("store.{$key}", $data, 30);
     $this->store->put($key, $data);
 }
コード例 #3
0
ファイル: EncryptingStore.php プロジェクト: AltThree/Storage
 /**
  * Put an item into the storage.
  *
  * @param string $key
  * @param string $data
  *
  * @return void
  */
 public function put($key, $data)
 {
     $this->store->put($key, $this->encrypter->encrypt($data));
 }
コード例 #4
0
ファイル: CompressingStore.php プロジェクト: AltThree/Storage
 /**
  * Put an item into the storage.
  *
  * @param string $key
  * @param string $data
  *
  * @return void
  */
 public function put($key, $data)
 {
     $this->store->put($key, $this->compressor->compress($data));
 }