Skip to content

Commit

Permalink
Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-baillie-ortoo committed Mar 9, 2022
1 parent 72a988f commit 48259c6
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public with sharing class BulkObjectCache
// TODO: could implement a longest time since accessed, first out
// TODO: could implement a random age out
// TODO: could just ignore and invalidate the cache - check with the rest of the seniors
// TODO: Single cache
// TODO: Docs on keys
// TODO: do we need to protect against non-numeric keys? Or let the platform cache deal withit?

// TODO: hide createFullyQualifiedPartitionName and createFullyQualifiedKey

public class InvalidIdentifierException extends Exceptions.DeveloperException {}

Expand Down Expand Up @@ -83,22 +83,6 @@ public with sharing class BulkObjectCache
private final static String PARTITION_NAME = 'core';
private final static Integer CACHE_LIFESPAN_SECONDS = 28800; // TODO: soft setting / option

@testVisible
private final static String CAN_ACCESS_SOQL_CACHE_PERMISSION = 'ProcessesCanAccessCache'; // TODO: same permission?

private Boolean hasAccessToCache
{
get
{
if ( hasAccessToCache == null )
{
hasAccessToCache = PermissionsService.hasPermission( CAN_ACCESS_SOQL_CACHE_PERMISSION );
}
return hasAccessToCache;
}
set;
}

/**
* Set the scope of the this cache instance.
*
Expand Down

0 comments on commit 48259c6

Please sign in to comment.