Skip to content

Commit a97357b

Browse files
committed
Bump version to 37 in class annotations.
1 parent 53442c4 commit a97357b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/PersistentSession/PersistentSession.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace INTERMediator\FileMakerServer\RESTAPI\PersistentSession;
44

55
use INTERMediator\FileMakerServer\RESTAPI\FMDataAPI;
6+
use INTERMediator\FileMakerServer\RESTAPI\SessionCache\SessionCacheInterface;
67
use 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
/**

0 commit comments

Comments
 (0)