File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
dotnet/src/dotnetframework/Providers/Cache Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 33using System . Linq ;
44using System . Security ;
55using System . Text . Json ;
6- using System . Text . Json . Serialization ;
76using Enyim . Caching ;
87using Enyim . Caching . Configuration ;
98using Enyim . Caching . Memcached ;
@@ -40,7 +39,11 @@ MemcachedClient InitCache()
4039 password = providerService . Properties . Get ( "CACHE_PROVIDER_PASSWORD" ) ;
4140 if ( ! string . IsNullOrEmpty ( password ) )
4241 {
43- password = CryptoImpl . Decrypt ( password ) ;
42+ string ret = string . Empty ;
43+ if ( CryptoImpl . Decrypt ( ref ret , password ) )
44+ {
45+ password = ret ;
46+ }
4447 }
4548 }
4649 }
Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ public Redis()
4141 password = providerService . Properties . Get ( "CACHE_PROVIDER_PASSWORD" ) ;
4242 if ( ! string . IsNullOrEmpty ( password ) )
4343 {
44- password = CryptoImpl . Decrypt ( password ) ;
44+ string ret = string . Empty ;
45+ if ( CryptoImpl . Decrypt ( ref ret , password ) )
46+ {
47+ password = ret ;
48+ }
4549 }
4650
4751 if ( string . IsNullOrEmpty ( address ) )
You can’t perform that action at this time.
0 commit comments