Skip to content

Instantly share code, notes, and snippets.

@Amberlamps
Created August 7, 2018 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amberlamps/edfcb35c37e26c65abc4217e4e93850c to your computer and use it in GitHub Desktop.
Save Amberlamps/edfcb35c37e26c65abc4217e4e93850c to your computer and use it in GitHub Desktop.
interface AbstractionLayer {
createUser();
}
class MongoDbAdapter implements AbstractionLayer {
createUser() {
// Mongodb specific code
}
}
class CassandraAdapeter implements AbstractionLayer {
createUser() {
// Cassandra specific code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment