- Timestamp:
- 06/21/07 11:46:08 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/cache/stubAbstractCacheContainer.php
r738 r741 18 18 * the strategy used for decisions about caching 19 19 * 20 * @var stubCacheStra gey20 * @var stubCacheStrategy 21 21 */ 22 22 protected $strategy; … … 35 35 36 36 /** 37 * constructor 38 * 39 * @param string $id id of the container 40 * @param stubCacheStrategy $strategy strategy the container should use 41 */ 42 public function __construct($id, stubCacheStrategy $strategy) 43 { 44 $this->id = $id; 45 $this->strategy = $strategy; 46 } 47 48 /** 37 49 * sets the id of the container 38 50 * … … 57 69 * sets the strategy the container should use 58 70 * 59 * @param stubCacheStra gey $strategy60 */ 61 public function setStrategy(stubCacheStra gey $strategy)71 * @param stubCacheStrategy $strategy 72 */ 73 public function setStrategy(stubCacheStrategy $strategy) 62 74 { 63 75 $this->strategy = $strategy; … … 75 87 public function put($key, $data) 76 88 { 77 if ($this->strategy->isCach eable($this, $key, $data) == false) {89 if ($this->strategy->isCachable($this, $key, $data) == false) { 78 90 return false; 79 91 }
