[id='adding-sb-dependencies_{context}']
= Adding Dependencies for Usage Modes
{brandname} provides different dependencies for embedded caches and remote caches.

.Procedure

* Add one of the following to your `pom.xml` file:

.Embedded caches Spring Boot 3.x
[source,xml,options="nowrap",subs=attributes+]
----
include::dependencies_maven/sb3_embedded.xml[]
----

.Embedded caches Spring Boot 4.x
[source,xml,options="nowrap",subs=attributes+]
----
include::dependencies_maven/sb4_embedded.xml[]
----

.Remote caches Spring Boot 3.x
[source,xml,options="nowrap",subs=attributes+]
----
include::dependencies_maven/sb3_remote.xml[]
----

.Remote caches Spring Boot 4.x
[source,xml,options="nowrap",subs=attributes+]
----
include::dependencies_maven/sb4_remote.xml[]
----
