Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/772ab3c92132196b63b15c92a262acc0bcce228f
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
19 additions and
9 deletions
@ -48,6 +48,23 @@ namespace NzbDrone.Common.Test.CacheTests
_cachedString . Find ( "Key" ) . Should ( ) . Be ( "New" ) ;
}
[Test]
public void should_be_able_to_remove_key ( )
{
_cachedString . Set ( "Key" , "Value" ) ;
_cachedString . Remove ( "Key" ) ;
_cachedString . Find ( "Key" ) . Should ( ) . BeNull ( ) ;
}
[Test]
public void should_be_able_to_remove_non_existing_key ( )
{
_cachedString . Remove ( "Key" ) ;
}
[Test]
public void should_store_null ( )
{
@ -61,17 +61,10 @@ namespace NzbDrone.Common.Cache
return value . Object ;
}
public T Remove ( string key )
public void Remove ( string key )
{
CacheItem value ;
_store . TryRemove ( key , out value ) ;
if ( value = = null )
{
return default ( T ) ;
}
return value . Object ;
}
public T Get ( string key , Func < T > function , TimeSpan ? lifeTime = null )
@ -13,7 +13,7 @@ namespace NzbDrone.Common.Cache
void Set ( string key , T value , TimeSpan ? lifetime = null ) ;
T Get ( string key , Func < T > function , TimeSpan ? lifeTime = null ) ;
T Find ( string key ) ;
T Remove ( string key ) ;
void Remove ( string key ) ;
ICollection < T > Values { get ; }
}