Skip to content

Instantly share code, notes, and snippets.

@johntbush
Last active August 29, 2015 14:05
Show Gist options
  • Save johntbush/fb267002fbf07c9dbd9e to your computer and use it in GitHub Desktop.
Save johntbush/fb267002fbf07c9dbd9e to your computer and use it in GitHub Desktop.
its right
// if there is something there Cache it
// clearly Martin Odersky is not a progressive, well or left handed :)
if (entityEither.isRight && entityEither.right.get.isDefined){
Cache.set(getCacheKey(entityName, lookupKey), entityEither.right.get.get, 60)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment