File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33namespace INTERMediator \FileMakerServer \RESTAPI \PersistentSession ;
44
55use INTERMediator \FileMakerServer \RESTAPI \FMDataAPI ;
6+ use INTERMediator \FileMakerServer \RESTAPI \SessionCache \SessionCacheInterface ;
67use RuntimeException ;
78
89/**
@@ -77,15 +78,17 @@ public function applyCachedSessionToken(FMDataAPI $client): bool
7778 public function cacheCurrentSessionToken (FMDataAPI $ client ): void
7879 {
7980 $ token = $ this ->getCurrentSessionTokenOrFail ($ client );
80- $ this ->cache ->set ($ this ->cacheKey (), $ token , self ::TOKEN_TTL );
81+ // $this->cache->set($this->cacheKey(), $token, self::TOKEN_TTL);
82+ $ this ->cache ->set ($ token );
8183 }
8284
8385 /**
8486 * Clear the cached session token.
8587 */
8688 public function clearCachedSessionToken (): void
8789 {
88- $ this ->cache ->delete ($ this ->cacheKey ());
90+ // $this->cache->delete($this->cacheKey());
91+ $ this ->cache ->delete ();
8992 }
9093
9194 /**
@@ -94,7 +97,8 @@ public function clearCachedSessionToken(): void
9497 */
9598 private function getCachedSessionToken (): string |false
9699 {
97- return $ this ->cache ->get ($ this ->cacheKey ());
100+ // return $this->cache->get($this->cacheKey());
101+ return $ this ->cache ->get ();
98102 }
99103
100104 /**
You can’t perform that action at this time.
0 commit comments