@@ -27,9 +27,6 @@ class UserCacheService
2727 * Generate cache key for a user and company.
2828 *
2929 * @param int|string $userId
30- * @param string $companyId
31- *
32- * @return string
3330 */
3431 public static function getCacheKey ($ userId , string $ companyId ): string
3532 {
@@ -40,9 +37,6 @@ public static function getCacheKey($userId, string $companyId): string
4037 * Get cached user data.
4138 *
4239 * @param int|string $userId
43- * @param string $companyId
44- *
45- * @return array|null
4640 */
4741 public static function get ($ userId , string $ companyId ): ?array
4842 {
@@ -75,11 +69,6 @@ public static function get($userId, string $companyId): ?array
7569 * Store user data in cache.
7670 *
7771 * @param int|string $userId
78- * @param string $companyId
79- * @param array $data
80- * @param int|null $ttl
81- *
82- * @return bool
8372 */
8473 public static function put ($ userId , string $ companyId , array $ data , ?int $ ttl = null ): bool
8574 {
@@ -110,10 +99,6 @@ public static function put($userId, string $companyId, array $data, ?int $ttl =
11099
111100 /**
112101 * Invalidate cache for a specific user.
113- *
114- * @param User $user
115- *
116- * @return void
117102 */
118103 public static function invalidateUser (User $ user ): void
119104 {
@@ -157,9 +142,6 @@ public static function invalidateUser(User $user): void
157142 * Invalidate cache for a specific user and company.
158143 *
159144 * @param int|string $userId
160- * @param string $companyId
161- *
162- * @return void
163145 */
164146 public static function invalidate ($ userId , string $ companyId ): void
165147 {
@@ -184,16 +166,12 @@ public static function invalidate($userId, string $companyId): void
184166
185167 /**
186168 * Invalidate all cache for a company.
187- *
188- * @param string $companyId
189- *
190- * @return void
191169 */
192170 public static function invalidateCompany (string $ companyId ): void
193171 {
194172 try {
195173 // Get all cache keys for this company
196- $ pattern = self ::CACHE_PREFIX . '*: ' . $ companyId ;
174+ $ pattern = self ::CACHE_PREFIX . '*: ' . $ companyId ;
197175 $ cacheKeys = Cache::getRedis ()->keys ($ pattern );
198176
199177 foreach ($ cacheKeys as $ key ) {
@@ -216,10 +194,6 @@ public static function invalidateCompany(string $companyId): void
216194
217195 /**
218196 * Generate ETag for a user.
219- *
220- * @param User $user
221- *
222- * @return string
223197 */
224198 public static function generateETag (User $ user ): string
225199 {
@@ -228,8 +202,6 @@ public static function generateETag(User $user): string
228202
229203 /**
230204 * Get browser cache TTL.
231- *
232- * @return int
233205 */
234206 public static function getBrowserCacheTTL (): int
235207 {
@@ -238,8 +210,6 @@ public static function getBrowserCacheTTL(): int
238210
239211 /**
240212 * Get server cache TTL.
241- *
242- * @return int
243213 */
244214 public static function getServerCacheTTL (): int
245215 {
@@ -248,8 +218,6 @@ public static function getServerCacheTTL(): int
248218
249219 /**
250220 * Check if caching is enabled.
251- *
252- * @return bool
253221 */
254222 public static function isEnabled (): bool
255223 {
@@ -258,8 +226,6 @@ public static function isEnabled(): bool
258226
259227 /**
260228 * Clear all user current caches.
261- *
262- * @return void
263229 */
264230 public static function flush (): void
265231 {
0 commit comments