mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	feat(router): add route to invalidate cache entry (#1100)
Co-authored-by: jeeva <jeeva.ramu@codurance.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
		@ -109,7 +109,7 @@ impl QueueInterface for Store {
 | 
			
		||||
    async fn release_pt_lock(&self, tag: &str, lock_key: &str) -> CustomResult<bool, RedisError> {
 | 
			
		||||
        let is_lock_released = self.redis_conn()?.delete_key(lock_key).await;
 | 
			
		||||
        Ok(match is_lock_released {
 | 
			
		||||
            Ok(()) => true,
 | 
			
		||||
            Ok(_del_reply) => true,
 | 
			
		||||
            Err(error) => {
 | 
			
		||||
                logger::error!(error=%error.current_context(), %tag, "Error while releasing lock");
 | 
			
		||||
                false
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user